Instance MethodFoundationEssentials
settingAttributes(_:)
iOS 15.0+
iPadOS 15.0+
Mac Catalyst 15.0+
macOS 12.0+
tvOS 15.0+
watchOS 8.0+
Returns an attributed string by setting the attributed string’s attributes to those in a specified attribute container.
func settingAttributes(_ attributes: AttributeContainer) -> AttributedString
Parameters
attributesThe attribute container with the attributes to apply.
Return Value
An attributed string from setting the attributed string’s attributes to those in a specified attribute container.