Protocols

The following protocols are available globally.

  • Undocumented

    See more

    Declaration

    Swift

    public protocol FloatConvertible
  • Allows CGPoint, CGSize and CGVector to be approximately interchangable You can do maths with mixed types You can easily convert between them For example: CGPoint() + CGSize() or CGSize() * 3 Extends accessors to apply to all types. So - cgPoint.width or cgSize.x are available

    See more

    Declaration

    Swift

    public protocol Vector
  • Undocumented

    See more

    Declaration

    Swift

    public protocol NibLoadable
  • Undocumented

    See more

    Declaration

    Swift

    public protocol FromStoryboard : AnyObject
  • Add this to any UIViewController to let it easily present a UIDocumentInteractionController controller using openPreview(…)

    See more
  • Add this to any UIViewController to let it easily present a SFSafariView controller using openSafari(url:)

    See more