---
title: selectedAlternativeStringNotification
framework: appkit
role: symbol
role_heading: Type Property
path: appkit/nstextalternatives/selectedalternativestringnotification
---

# selectedAlternativeStringNotification

Posted when the user selects an alternate string.

## Declaration

```swift
class let selectedAlternativeStringNotification: NSNotification.Name
```

## Discussion

Discussion Arbitrary objects can listen for for this notification to get user selections of alternative strings. The userInfo dictionary contains the following information:  |   |  To observe this notification using Swift concurrency, use NSTextAlternatives.SelectedAlternativeStringMessage.
