What are optionals in Swift?

An Optional is a type on its own, actually one of Swift 4’s new super-powered enums . It has two possible values, None and Some(T), where T is an associated value of the correct data type available in Swift 4.

Sizin İçin Seçtik  Is Swift a real programming language?

Leave a Reply

Your email address will not be published. Required fields are marked *