Protocols

The following protocols are available globally.

  • Conform to this protocol in a base class in order to add stored info needed for styling If your control needs to be re-styled throughout the app’s lifecycle, use this protocol

    See more

    Declaration

    Swift

    public protocol SwiftyStyleInfoProtocol: class
  • Conform to this protocol to define how a control should be styled given a key and a StyleSet

    See more

    Declaration

    Swift

    public protocol SwiftyStyleProtocol: class
  • Conform to style strategy to define how your UI controls should retrieve their style sets.

    See more

    Declaration

    Swift

    public protocol StyleStrategy
  • Best used with string based enums, conform to this protocol in order to define style keys

    See more

    Declaration

    Swift

    public protocol StyleKeyProtocol
  • Conform to this protocol in order to interact with StyleSet

    See more

    Declaration

    Swift

    public protocol StylePropertyProtocol
  • Conform to this protocol for any additional styling not covered by default style() functions. If you are doing something special with a control that already conforms to SwiftyStyleProtocol then use this protocol to do additional stlying. additionalStyle(styleSet: StyleSet) will be

    See more

    Declaration

    Swift

    public protocol SwiftyAdditionalStyleProtocol: class
  • Conform to this protocol to set what strategy will be used to retrieve a style set

    See more

    Declaration

    Swift

    public protocol SwiftyStyleSetRetrieverProtocol: class