Optionals
In Swift, you can use optionals to represent variables and constants that could be nil or a value. Any data type in Swift can be made optional by adding a question mark after the data type name. For instance, let’s create an optional String: The value of this string is now nil. To use an […]