An object you use to check a string (usually the text of a document) for misspelled words.
SDKs
- iOS 3.2+
- Mac Catalyst 13.0+
- tvOS 9.0+
Framework
- UIKit
Declaration
class UITextChecker : NSObject
Overview
UIText
spell-checks using a lexicon for a given language. You can tell it to ignore specific words when spell-checking a particular document and you can have it learn words, which adds those words to the lexicon. You generally use one instance of UIText
per document, although you can use a single instance to spell-check related pieces of text if you want to share ignored words and other state.
You may also use a text checker to obtain completions for partially entered words, as well as possible replacements for misspelled words, which you then can present to users.