---
title: "writingToolsCoordinator(_:setGrammarCheckingEnabled:)"
framework: AppKit
role: symbol
role_heading: Instance Method
platforms: [macOS 27.0+]
path: "appkit/nswritingtoolscoordinator/delegate-swift.protocol/writingtoolscoordinator(_:setgrammarcheckingenabled:)"
---

# writingToolsCoordinator(_:setGrammarCheckingEnabled:)

Notifies the delegate when the user chooses to disable grammar checking.

## Declaration

```swift
optional func writingToolsCoordinator(_ writingToolsCoordinator: NSWritingToolsCoordinator, setGrammarCheckingEnabled enabled: Bool)
```

## Discussion

Discussion To support the grammar presentation UI, the delegate is notified if the user chooses the option provided in the grammar presentation UI to disable grammar checking for the view. If you use grammar presentation, you should implement this method to respond to that action.
