Xcode is quite the beast and intimidating with its very detailed functionality. These are some really great tips/keyboard shortcuts to help speed up and/or access some really useful functions of Xcode. Also don’t miss some bonus tips in the first comment of the article.
Tag Archives: xcode
Xcode can be a bit daunting at first when you’re starting out as an iOS developer. It’s a very complex and capable program, which means it can be hard to find what you’re looking for.
Thomas has some good tips for Xcode, including using landmarks (TODO:, MARK:, FIXME:), search, groups and callers—which all make it much easier to find what you’re looking for or what you need to come back to later.
Check it out!
radex.io has an excellent explanation of when you should AND shouldn’t use ‘guard’ in Swift. 🙌
‘Guard’ has quickly become one of my favourite way to help simplify my code by getting rid of lots of pyramids of doom! If if if 🙅.
Example:
guard !array.isEmpty else { return }
replaces the need to do an if statement around the entire code block that relies on the array not being empty and just returns from the function as soon as it finds an empty array without executing any further code in the function! 🎉
Make sure to check it out and try guard out in your code!
Best Practices in iOS Design
Want to make your app stand out and look professional and stylish? Some really great guidelines on this page that covers everything.