func mergingAttributes (AttributeContainer, mergePolicy : AttributedString.AttributeMergePolicy) -> AttributedString
Returns an attributed string by merging the attributed string’s attributes with those in a specified attribute container.
enum AttributedString.AttributeMergePolicy
An enumeration of behaviors to apply when merging attributes.
func replacingAttributes (AttributeContainer, with: AttributeContainer) -> AttributedString
Returns an attributed string by replacing occurrences of attributes in one attribute container with those in another attribute container.