---
title: "showGrammarPresentation(for:in:)"
framework: AppKit
role: symbol
role_heading: Instance Method
platforms: [macOS 27.0+]
path: "appkit/nswritingtoolscoordinator/showgrammarpresentation(for:in:)"
---

# showGrammarPresentation(for:in:)

Used to support the presentation of grammar issues in text. When the user interacts with an issue, call this to bring up the relevant UI.

## Declaration

```swift
func showGrammarPresentation(for range: NSRange, in context: NSWritingToolsCoordinator.Context) -> Bool
```

## Discussion

Discussion Pass in context and range to identify the issue the user selected. Returns NO if the UI cannot be brought up.
