---
title: "spellCheckingResult(range:)"
framework: foundation
role: symbol
role_heading: Type Method
path: "foundation/nstextcheckingresult/spellcheckingresult(range:)"
---

# spellCheckingResult(range:)

Creates and returns a text checking result with the range of a misspelled word.

## Declaration

```swift
class func spellCheckingResult(range: NSRange) -> NSTextCheckingResult
```

## Parameters

- `range`: The range of the detected result.

## Return Value

Return Value Returns an NSTextCheckingResult with the specified range and a resultType of spelling.

## See Also

### Text Checking Results for Spelling

- [correctionCheckingResult(range:replacementString:)](foundation/nstextcheckingresult/correctioncheckingresult(range:replacementstring:).md)
