FUIStyleByTintAttributes
public protocol FUIStyleByTintAttributes : AnyObject
The component class that allows the developer to customize the tint attributes of its properties.
-
Generic
Typeof the tint state.Declaration
Swift
associatedtype TintState : Defaultable, Hashable -
Map of
[NSAttributedStringKey: Any]attributes which are computed from the stylesheet. TheNUIViewRendererupdates the dictionary directly during theUIView.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
attributesThe tint attributes to be added.
propertyThe specified property of the attributes to be added.
stateThe 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
attributesThe tint attributes to be set.
propertyThe specified property of the attributes to be set.
stateThe specified tint state of the attributes to be applied.
-
The tint state.
Declaration
Swift
var tintState: TintState { get set }