Posts with optionals Tag

Swift Optionals and Unwrapping

Optionals is a Swift type. The key thing to remember is it can hold a value or no value. We append ? to any type to declare it as an optional


var beer: String? = “Atomic”

Optional definition

enum Optional {
    case none...

Read more