mergeAttributes(_:mergePolicy:)
Merges the attributed string’s attributes with those in a specified attribute container.
Declaration
mutating func mergeAttributes(_ attributes: AttributeContainer, mergePolicy: AttributedString.AttributeMergePolicy)Parameters
- attributes:
The attribute container with the attributes to merge.
- mergePolicy:
A policy to use when resolving conflicts between this string’s attributes and those in
attributes.