Protocol
AttributedStringAttributeMutation
iOS 15.0+
iPadOS 15.0+
Mac Catalyst 15.0+
macOS 12.0+
tvOS 15.0+
watchOS 8.0+
A protocol that defines in-place mutations for attributes in an attributed string.
protocol AttributedStringAttributeMutation
Topics
Instance Methods
func mergeAttributes(AttributeContainer, mergePolicy: AttributedString.AttributeMergePolicy)Merges the attributed string’s attributes with those in a specified attribute container.func replaceAttributes(AttributeContainer, with: AttributeContainer)Replaces the attributed string’s attributes with those in a specified attribute container.func setAttributes(AttributeContainer)Sets the attributed string’s attributes to those in a specified attribute container.