FUIStyleTintByStringAttributes
public protocol FUIStyleTintByStringAttributes : FUIStyleByStringAttributes
Not typically used directly by app developer.
-
Undocumented
Declaration
Swift
associatedtype TintState : Defaultable, Enableable, Hashable
-
Map of
[NSAttributedStringKey: Any]
attributes which are computed from the stylesheet. TheNUIViewRenderer
updates the dictionary directly, during theUIView.applyNUI()
method.Declaration
Swift
var cachedTintAttributes: [FUIPropertyRef : [FUIStyleClassSource : [TintState : [NSAttributedStringKey : Any]]]] { get set }
-
Processes the stylesheet for the specified source and tint state.
Declaration
Swift
func getStylesForTintStates(property: FUIPropertyRef, source: FUIStyleClassSource, styleType: FUIStyleType, states: [TintState])
Parameters
property
The property the stylesheet is to be applied.
source
The source of the stylesheet.
styleType
The style type for the property.
states
Tint states that this property supports.
-
The dictionary for the properties with the tint states that the view supports.
This should be set by the subviews during the initialization.
Declaration
Swift
var tintablePropertyRefs: [FUIPropertyRef : [TintState]] { get set }
-
getStylesForTintStates(property:source:styleType:states:tintStates:)
Extension methodUndocumented
Declaration
Swift
public func getStylesForTintStates(property: FUIPropertyRef, source: FUIStyleClassSource, styleType: FUIStyleType, states: [FUIControlState], tintStates: [TintState])