---
title: "requestGrammarChecking(of:range:waitForAllResults:completionHandler:)"
framework: uikit
role: symbol
role_heading: Instance Method
platforms: [iOS 27.0+, iPadOS 27.0+, Mac Catalyst 27.0+, tvOS 27.0+, visionOS 27.0+]
path: "uikit/uitextchecker/requestgrammarchecking(of:range:waitforallresults:completionhandler:)"
---

# requestGrammarChecking(of:range:waitForAllResults:completionHandler:)

## Declaration

```swift
func requestGrammarChecking(of stringToCheck: String, range: NSRange, waitForAllResults: Bool, completionHandler: (([NSTextCheckingResult]) -> Void)? = nil)
```

```swift
func requestGrammarChecking(of stringToCheck: String, range: NSRange, waitForAllResults: Bool) async -> [NSTextCheckingResult]
```
