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 You’re already busy updating your app for Swift 4.2 and iOS 12, so why not let Instabug help you find and fix bugs? Add just two lines of code to your project and receive comprehensive reports with all the feedback you need to ship a world-class app – click here to learn more!