FUIStateTintable

public protocol FUIStateTintable : AnyObject

Undocumented

  • state Default implementation

    Undocumented

    Default Implementation

    Tintable state as UIControlState

    Declaration

    Swift

    var state: UIControlState { get }
  • stateDidChange() Default implementation

    Undocumented

    Default Implementation

    Should be invoked by controls, when state is changed. Technique for doing this may vary. Controls are responsible for invoking correclty.

    Declaration

    Swift

    func stateDidChange()
  • Undocumented

    Declaration

    Swift

    var tintColor: UIColor! { get set }
  • setTintColor(_:for:) Default implementation

    Undocumented

    Default Implementation

    Undocumented

    Declaration

    Swift

    func setTintColor(_ color: UIColor, for state: UIControlState)
  • tintColor(for:) Default implementation

    Undocumented

    Default Implementation

    Public getter to read tint color from backing dictionary

    Declaration

    Swift

    func tintColor(for state: UIControlState) -> UIColor?