---
title: isGrammarCheckingEnabled
framework: appkit
role: symbol
role_heading: Instance Property
path: appkit/nstextview/isgrammarcheckingenabled
---

# isGrammarCheckingEnabled

Enables and disables grammar checking.

## Declaration

```swift
var isGrammarCheckingEnabled: Bool { get set }
```

## Discussion

Discussion If true, grammar checking is enabled; if false, it is disabled.

## See Also

### Working with the spelling checker

- [isContinuousSpellCheckingEnabled](appkit/nstextview/iscontinuousspellcheckingenabled.md)
- [spellCheckerDocumentTag](appkit/nstextview/spellcheckerdocumenttag.md)
- [toggleContinuousSpellChecking(_:)](appkit/nstextview/togglecontinuousspellchecking(_:).md)
- [toggleGrammarChecking(_:)](appkit/nstextview/togglegrammarchecking(_:).md)
- [setSpellingState(_:range:)](appkit/nstextview/setspellingstate(_:range:).md)
