FUITintableDrawingView

open class FUITintableDrawingView<T> : FUIBaseDrawingView, FUITintAttributesProvider, FUIAttributesProvider, FUIEnabledComponent, FUIStyleTintByStringAttributes, TintStyleGrabbing where T : Defaultable, T : Enableable, T : Hashable

Undocumented

  • Declaration

    Swift

    public typealias TintState = T
  • Declaration

    Swift

    open var tintAttributes: [FUIPropertyRef : [T : [NSAttributedStringKey : Any]]] { get set }
  • Declaration

    Swift

    open var tintState: T { get set }
  • Aggregate state property, which combines the developer-set value with the current state of the relevant containing views. This accounts for cases where the view should be disabled as a result of a property on a parent view. For example, the FUITintableDrawingView may be a subview of a UICollectionViewCell; collection view cell selection is managed by the allowsSelection and allowsMultipleSelection properties in the UICollectionView. The result of this property is: if the containing view is enabled, or there is no container, return: this view’s isEnabled' value. If the containing view is not enabled, returnfalse`.

    Declaration

    Swift

    open var isEnabled: Bool { get set }
  • Declaration

    Swift

    open override func prepareForReuse()
  • Utility function to store the control’s current state, while a temporary transition to another state occurs. Should be paired with with restoreTintStateFromCache(). Useful for press gestures, where the control transitions to highlighted.

    Declaration

    Swift

    open func cacheTintState()
  • Utility function to restore the control’s original state, before a temporary transition to another state. Should follow a call to cacheTintState(). If no state has been previously cached, the call will return.

    Declaration

    Swift

    open func restoreTintStateFromCache()