A type that can be initialized using the nil literal, nil
.
SDK
- Xcode 8.0+
Framework
- Swift Standard Library
Declaration
Overview
nil
has a specific meaning in Swift—the absence of a value. Only the Optional
type conforms to Expressible
. Expressible
conformance for types that use nil
for other purposes is discouraged.