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
default
andtint
attributes fromFUIAttributesProvider
. - Merges those attributes, with the developer-set attributes on the
FUIText
instance. - Acquires
stylesheet
attributes (parsed from .nss file) fromFUIAttributesProvider
. - Merges those attributes with the
default
,tint
, anddeveloper
attributes. - Produces new attributed string from raw
String
fromFUIText
, and the attributes dictionary - Applies final paragraph styling from
stylesheet
. - Applies Accessibility properties from the
FUIText
instance.
Declaration
Swift
public func styledAttributedString(forText fuiText: FUIText, withPropertyRef propertyRef: FUIPropertyRef) -> NSAttributedString
- Acquires