AnyOptional

public protocol AnyOptional

Protocol used for identifying generic optional objects

  • Returns a boolean flag, if the object implementing this protocol represents nil

    Declaration

    Swift

    var isNil: Bool { get }
  • Returns the object, in case it is not nil

    Declaration

    Swift

    var wrapped: Any { get }