Resources

Xcode: Navigating Through Your Project

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!

Link
Best Practices

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!

http://radex.io/swift/guard/

Link