You’ve made it to the end of the tenth part of this series, so let’s summarize:
if letor using
nilyour code will crash.
try?to convert a throwing function into an optional return value, or
try!to crash if an error is thrown.
init?()to make a failable initializer.
SPONSORED Would you describe yourself as knowledgeable, but struggling when you have to come up with your own code? Fernando Olivares has a new book containing iOS rules you can immediately apply to your coding habits to see dramatic improvements, while also teaching applied programming fundamentals seen in refactored code from published apps.
Link copied to your pasteboard.