---
title: NSWritingToolsCoordinator.TextReplacementReason.accepted
framework: AppKit
role: symbol
role_heading: Case
platforms: [macOS 27.0+]
path: appkit/nswritingtoolscoordinator/textreplacementreason/accepted
---

# NSWritingToolsCoordinator.TextReplacementReason.accepted

An option to replace the text in your view when a grammar suggestion is accepted.

## Declaration

```swift
case accepted
```

## Discussion

Discussion When the user interacts with a grammar issue and the UI is shown, and the option to accept a suggestion is chosen, this reason will be used. Update your view’s text storage without animating the change.
