FUIStyleByTintAttributes

public protocol FUIStyleByTintAttributes : AnyObject

The component class that allows the developer to customize the tint attributes of its properties.

  • Generic Type of the tint state.

    Declaration

    Swift

    associatedtype TintState : Defaultable, Hashable
  • Map of [NSAttributedStringKey: Any] attributes which are computed from the stylesheet. The NUIViewRenderer updates the dictionary directly during the UIView.applyNUI() method.

    Declaration

    Swift

    var tintAttributes: [FUIPropertyRef : [TintState : [NSAttributedStringKey : Any]]] { get set }
  • Adds the tint attributes to the property for the specified tint state.

    Declaration

    Swift

    func addAttributes(_ attributes: [NSAttributedStringKey : Any], for property: FUIPropertyRef, state: TintState)

    Parameters

    attributes

    The tint attributes to be added.

    property

    The specified property of the attributes to be added.

    state

    The specified tint state of the attributes to be applied.

  • Sets the tint attributes of the property for the specified tint state.

    Declaration

    Swift

    func setAttributes(_ attributes: [NSAttributedStringKey : Any], for property: FUIPropertyRef, state: TintState)

    Parameters

    attributes

    The tint attributes to be set.

    property

    The specified property of the attributes to be set.

    state

    The specified tint state of the attributes to be applied.

  • The tint state.

    Declaration

    Swift

    var tintState: TintState { get set }