Protocols

The following protocols are available globally.

  • Undocumented

    See more

    Declaration

    Swift

    public protocol APIResponseValue : CustomDebugStringConvertible, CustomStringConvertible
  • Undocumented

    Declaration

    Swift

    public protocol APIModel : Decodable, Encodable, Equatable
  • Undocumented

    See more

    Declaration

    Swift

    public protocol ResponseDecoder
  • Undocumented

    See more

    Declaration

    Swift

    public protocol RequestEncoder
  • Undocumented

    See more

    Declaration

    Swift

    public protocol RequestBehaviour
  • Undocumented

    See more

    Declaration

    Swift

    public protocol AppKitDelegate : AnyObject
  • Undocumented

    See more

    Declaration

    Swift

    public protocol AppDrawerProtocol : AnyObject
  • Undocumented

    See more

    Declaration

    Swift

    public protocol POIDatabaseDelegate : AnyObject
  • Undocumented

    See more

    Declaration

    Swift

    public protocol POIKitObserverTokenDelegate : AnyObject
  • Undocumented

    See more

    Declaration

    Swift

    public protocol POIModelConvertible
  • Undocumented

    See more

    Declaration

    Swift

    public protocol POIKitDelegate : AnyObject
  • Poly is a protocol to which types that are polymorphic belong to.

    Specifically, Poly1, Poly2, Poly3, etc. types conform to the Poly protocol. These types allow typesafe grouping of a number of disparate types under one roof.

    Access

    You can access the value of a Poly type in one of four different ways.

    1. You can switch over its cases

      switch poly2Value {
      case .a(let value):
          // value is of type `A`
      case .b(let value):
          // value is of type `B`
      }
      
    2. You can ask for a value by accessor

      let value1 = poly2Value.a // value1 is of type `A?`
      let value2 = poly2Value.b // value2 is of type `B?`
      
    3. You can ask for a value by type

      let value1 = poly2Value[A.self] // value1 is of type `A?`
      let value2 = poly2Value[B.self] // value2 is of type `B?`
      
    4. You can ask for a type-erased value

      let value = poly2Value.value // value is of type `Any`
      
    See more

    Declaration

    Swift

    public protocol Poly

0 types

  • Undocumented

    Declaration

    Swift

    public protocol _Poly0 : Poly

1 type

2 types

3 types

4 types

5 types

6 types

7 types

8 types

9 types

10 types

11 types