I’m going through the “Start Developing iOS Apps (Swfit)” tutorial and I have a question on Implictly Unwrapped Optionals (IUO) types. From the defintion in the documentation I know the following:
1. exclamation point indicates that the type is an implicitly unwrapped optional
2. optional type that will always have a value after it is first set
3. When you access an implicitly unwrapped optional, the system assumes it has a valid value and automatically unwraps it for you. Note that this causes the app to terminate if the variable’s value has not yet been set.
My questions is:
What is the significance of these optional types in Swift, how does it benefit a developer and their code?
Powered by WPeMatico