FUIBackingPropertyValueMap
public protocol FUIBackingPropertyValueMap : AnyObject
Component protocol, for storing developer-set NSAttributedString overrides.
E.g.: titleAttributedText: NSAttributedString in FUIChartTitleView.
-
Container for mapping stored attributed strings to property reference.
Declaration
Swift
var backingPropertyValueMap: [FUIPropertyRef : NSAttributedString?] { get set }
-
styledAttributedString(forText:withPropertyRef:)Extension methodUtility method, which composes an
NSAttributedString. NOT usually used directly by app developer.- Acquires
defaultandtintattributes fromFUIAttributesProvider. - Merges those attributes, with the developer-set attributes on the
FUITextinstance. - Acquires
stylesheetattributes (parsed from .nss file) fromFUIAttributesProvider. - Merges those attributes with the
default,tint, anddeveloperattributes. - Produces new attributed string from raw
StringfromFUIText, and the attributes dictionary - Applies final paragraph styling from
stylesheet. - Applies Accessibility properties from the
FUITextinstance.
Declaration
Swift
public func styledAttributedString(forText fuiText: FUITextProtocol, withPropertyRef propertyRef: FUIPropertyRef) -> NSAttributedString - Acquires