insert(_:at:)
Inserts the specified string at a specific index in the attributed string.
Declaration
mutating func insert(_ s: some AttributedStringProtocol, at index: AttributedString.Index)Parameters
- s:
The string to insert.
- index:
The index that indicates where to insert the string.