replacingAttributes(_:with:)
Returns an attributed string by replacing occurrences of attributes in one attribute container with those in another attribute container.
Declaration
func replacingAttributes(_ attributes: AttributeContainer, with others: AttributeContainer) -> AttributedStringParameters
- attributes:
The existing attributes to replace.
- others:
The new attributes to apply.
Return Value
An attributed string created by replacing occurrences of attributes in one attribute container with those in another attribute container.