Optional

extension Optional: AnyOptional
  • Returns true if the optional is empy

    Declaration

    Swift

    public var isNil: Bool { get }
  • Unsafely unwrap the content of this optional

    Make sure to check ifNil before accessing this property, otherwise the unsafe unwrap might fail

    Declaration

    Swift

    public var wrapped: Any { get }