The absence of a value.
SDK
- Xcode 8.0+
Framework
- Swift Standard Library
Declaration
case none
Discussion
In code, the absence of a value is typically written using the nil
literal rather than the explicit .none
enumeration case.
The absence of a value.
SDK
Framework
case none
In code, the absence of a value is typically written using the nil
literal rather than the explicit .none
enumeration case.
init(nil Literal: ())
Creates an instance initialized with nil
.