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 In-app subscriptions are a pain. The code can be hard to write, full of edge cases, and time-consuming to maintain. RevenueCat provides a backend and wrapper around StoreKit to make things simple so you can focus on building your app.
Link copied to your pasteboard.