Safe area layout is introduced in iOS11 but what can we do if we are supporting < iOS 11 and we have a xib view that is initiated in a ViewController and somehow the upper part of the xib view appears behind the NavigationBar??? To fix this, simply add this line in your
self.edgesForExtendedLayout = UIRectEdge.init(rawValue: 0)
For more information visit EdgesForExtendedLayout at Apple.
Scripts save us a lot of time. While scripts are running and doing the work we would have had to do manually, we can drink coffee or talk or just chill! 😃 Here is how you can create a simple script in mac terminal.
Run the following in the terminal:
Paste the following or your own private script:
echo "Hello, world!"
Ctrl + wq
Run the following:
sudo chmod 700 myScript.sh
Run the script by:
My personal scripts run a bunch of git commands all in one script or build an app with different configurations etc. I also have scripts that compile and build an application or more 😉
Happy scripting guys and girls!