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

# init(_:)

Creates a text view that displays a stored string without localization.

```
init<S>(_ content: S) where S : StringProtocol
```

## Parameters

`content`

The string value to display without localization.

## Discussion

Use this initializer to create a text view that displays — without
localization — the text in a string variable.

```
Text(someString) // Displays the contents of `someString` without localization.
```

SwiftUI doesn’t call the `init(_:)` method when you initialize a text
view with a string literal as the input. Instead, a string literal
triggers the `Text/init(_:tableName:bundle:comment:)` method — which
treats the input as a `LocalizedStringKey` instance — and attempts to
perform localization.

By default, SwiftUI assumes that you don’t want to localize stored
strings, but if you do, you can first create a localized string key from
the value, and initialize the text view with that. Using a key as input
triggers the `Text/init(_:tableName:bundle:comment:)` method instead.

---

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)