Skip to content

OperatorFoundationEssentials

+=(_:_:)

iOS 15.0+ iPadOS 15.0+ Mac Catalyst 15.0+ macOS 12.0+ tvOS 15.0+ watchOS 8.0+
Appends an attributed string to another attributed string.
static func += (lhs: inout AttributedString, rhs: AttributedString)

Parameters

lhs

An attributed string. After the operation, the value of this string is the original lhs string with rhs appended to it.

rhs

An attributed string to append to lhs.