SwiftyStyleInfoProtocol

public protocol SwiftyStyleInfoProtocol: class

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

  • Stores all information needed to style control after initial styling. Namely, this class holds a styleKey and the listener for re-styling triggered by the StyleManager

    Declaration

    Swift

    var styleInfo: StyleInfo
  • styleKey Extension method

    Computed property to expose styleKey outside of module, On get/set attach control to StyleInfo to start listening for re-style events

    Declaration

    Swift

    public var styleKey: StyleKeyProtocol?