Instance MethodFoundationEssentials
setAttributes(_:)
iOS 15.0+
iPadOS 15.0+
Mac Catalyst 15.0+
macOS 12.0+
tvOS 15.0+
watchOS 8.0+
Sets the attributed string’s attributes to those in a specified attribute container.
mutating func setAttributes(_ attributes: AttributeContainer)
Parameters
attributesThe attribute container with the attributes to apply.