<!--
{
  "availability" : [
    "iOS: 15.0.0 -",
    "iPadOS: 15.0.0 -",
    "macCatalyst: 15.0.0 -",
    "macOS: 12.0.0 -",
    "tvOS: 15.0.0 -",
    "visionOS: 1.0.0 -",
    "watchOS: 8.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "Foundation",
  "identifier" : "/documentation/Foundation/AttributedString/+=(_:_:)-6yimu",
  "metadataVersion" : "0.1.0",
  "role" : "Operator",
  "symbol" : {
    "kind" : "Operator",
    "modules" : [
      "Foundation"
    ],
    "preciseIdentifier" : "s:10Foundation16AttributedStringV2peoiyyACz_xtAA0bC8ProtocolRzlFZ"
  },
  "title" : "+=(_:_:)"
}
-->

# +=(_:_:)

Appends an attributed string or substring to another attributed string.

```
static func += (lhs: inout AttributedString, rhs: some AttributedStringProtocol)
```

## 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 or substring to append to `lhs`.

## Discussion

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)