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 moreDeclaration
Swift
public protocol SwiftyStyleInfoProtocol: class
-
Conform to this protocol to define how a control should be styled given a key and a StyleSet
See moreDeclaration
Swift
public protocol SwiftyStyleProtocol: class
-
Undocumented
See moreDeclaration
Swift
public protocol ColorSetProtocol
-
Conform to style strategy to define how your UI controls should retrieve their style sets.
See moreDeclaration
Swift
public protocol StyleStrategy
-
Undocumented
See moreDeclaration
Swift
public protocol FontSetProtocol
-
Best used with string based enums, conform to this protocol in order to define style keys
See moreDeclaration
Swift
public protocol StyleKeyProtocol
-
Conform to this protocol in order to interact with StyleSet
See moreDeclaration
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 moreDeclaration
Swift
public protocol SwiftyAdditionalStyleProtocol: class
-
Conform to this protocol to set what strategy will be used to retrieve a style set
See moreDeclaration
Swift
public protocol SwiftyStyleSetRetrieverProtocol: class