<!--
{
  "availability" : [
    "macOS: 27.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "AppKit",
  "identifier" : "/documentation/AppKit/NSWritingToolsCoordinator/Delegate-swift.protocol/writingToolsCoordinator(_:setGrammarCheckingEnabled:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "AppKit"
    ],
    "preciseIdentifier" : "c:objc(pl)NSWritingToolsCoordinatorDelegate(im)writingToolsCoordinator:setGrammarCheckingEnabled:"
  },
  "title" : "writingToolsCoordinator(_:setGrammarCheckingEnabled:)"
}
-->

# writingToolsCoordinator(_:setGrammarCheckingEnabled:)

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

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

## 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.

---

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)