<!--
{
  "availability" : [
    "iOS: 13.0.0 - 26.0.0",
    "iPadOS: 13.0.0 - 26.0.0",
    "macCatalyst: 13.0.0 - 26.0.0",
    "macOS: 10.15.0 - 26.0.0",
    "tvOS: 13.0.0 - 26.0.0",
    "visionOS: 1.0.0 -",
    "watchOS: 6.0.0 - 26.0.0"
  ],
  "documentType" : "symbol",
  "framework" : "SwiftUI",
  "identifier" : "/documentation/SwiftUI/Text/+(_:_:)",
  "metadataVersion" : "0.1.0",
  "role" : "Operator",
  "symbol" : {
    "kind" : "Operator",
    "modules" : [
      "SwiftUI"
    ],
    "preciseIdentifier" : "s:7SwiftUI4TextV1poiyA2C_ACtFZ"
  },
  "title" : "+(_:_:)"
}
-->

# +(_:_:)

Concatenates the text in two text views in a new text view.

```
static func + (lhs: Text, rhs: Text) -> Text
```

## Parameters

`lhs`

The first text view with text to combine.

`rhs`

The second text view with text to combine.

## Return Value

A new text view containing the combined contents of the two
input text views.

## Discussion> Attention:
> The `+` on `Text` has been deprecated.
> 
> Using this operator to concatenate texts hardcodes a specific order
> for part of the sentence.
> This may lead to incorrect localization, especially for right-to-left
> languages.
> 
> Instead, prefer using the initializer on `Text` that allows
> for string interpolation.
> For example, instead of `Text("Hello") + Text(name)`, that concatenation
> can be equivalently expressed as `Text("Hello, \(name)!")`.
> 
> See ``doc://com.apple.SwiftUI/documentation/SwiftUI/Text`` for more information on localization and string
> interpolation.

---

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)