Optional

@_frozen
enum Optional<Wrapped> : ExpressibleByNilLiteral
  • Mechanica

    Returns true if self has a value.

    Declaration

    Swift

    public var hasValue: Bool { get }