Duc Ninja

More Interface Builder Tips And Tricks

My top ten tips, tricks, dos and don’ts to make you feel like an Interface Builder expert. To easily select an object when it is behind a stack of other items hold down the Ctrl (⌃) + Shift (⇧) keys and then click over the object. Select the item you want from the popup menu showing the full view hierarchy at the point where you clicked. ...
Read more ...

Open Terminal from Xcode

#TIL You are using third-party tools like CocoaPods, Cathage, SPM or just having some useful script files for your project. It’s fine! But you often found yourself in need of opening a Terminal window at the project location. It hard to tell that feeling. 🤔 Don’t worry, here is what you need to do: 1. Create a sh file Create a new text file...
Read more ...

Passing Data Using NotificationCenter in Swift 4

Passing data from one view controller to another view controller using Notification Center is an easy way when compared to delegate protocols. Here we need add observer or listeners for getting new data to load. First we need to send data using post notification method. Sending Data - Post Notification: let dataToSend = ["name" : "John", "age...
Read more ...