checkSpelling(of:startingAt:)
Starts the search for a misspelled word in stringToCheck starting at startingOffset within the string object.
Declaration
func checkSpelling(of stringToCheck: String, startingAt startingOffset: Int) -> NSRangeParameters
- stringToCheck:
The string to spell check.
- startingOffset:
The offset at which to start checking.
Return Value
Returns the range of the first misspelled word.
Discussion
Wrapping occurs, but no ignored-words dictionary is used.
See Also
Checking Strings for Spelling and Grammar
countWords(in:language:)checkSpelling(of:startingAt:language:wrap:inSpellDocumentWithTag:wordCount:)checkGrammar(of:startingAt:language:wrap:inSpellDocumentWithTag:details:)check(_:range:types:options:inSpellDocumentWithTag:orthography:wordCount:)requestChecking(of:range:types:options:inSpellDocumentWithTag:completionHandler:)guesses(forWordRange:in:language:inSpellDocumentWithTag:)