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 }
  • Utility method, which composes an NSAttributedString. NOT usually used directly by app developer.

    1. Acquires default and tint attributes from FUIAttributesProvider.
    2. Merges those attributes, with the developer-set attributes on the FUIText instance.
    3. Acquires stylesheet attributes (parsed from .nss file) from FUIAttributesProvider.
    4. Merges those attributes with the default, tint, and developer attributes.
    5. Produces new attributed string from raw String from FUIText, and the attributes dictionary
    6. Applies final paragraph styling from stylesheet.
    7. Applies Accessibility properties from the FUIText instance.

    Declaration

    Swift

    public func styledAttributedString(forText fuiText: FUITextProtocol, withPropertyRef propertyRef: FUIPropertyRef) -> NSAttributedString