---
title: "+(_:_:)"
framework: swiftui
role: symbol
role_heading: Operator
path: "swiftui/text/+(_:_:)"
---

# +(_:_:)

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

## Declaration

```swift
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

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

## Discussion

Discussion note: 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 Text for more information on localization and string interpolation.
