---
title: primaryString
framework: appkit
role: symbol
role_heading: Instance Property
path: appkit/nstextalternatives/primarystring
---

# primaryString

The text that was initially chosen as the input string.

## Declaration

```swift
var primaryString: String { get }
```

## Discussion

Discussion The text system uses the primaryString property to make sure that the text is still in the same state as when it was entered.

## See Also

### Storing Alternative Text Strings

- [alternativeStrings](appkit/nstextalternatives/alternativestrings.md)
