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. TheNUIViewRendererupdates 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
propertyThe property the stylesheet is to be applied.
sourceThe source of the stylesheet.
styleTypeThe style type for the property.
statesTint 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])