One Logo Pool Ball
UIKit · IOS API REFERENCE

UITextChecker

class · iOS 3.2+ · SDK 27.1

@MainActor class UITextChecker

Members (13)

static · iOS 3.2+

hasLearnedWord

TypeScript
static hasLearnedWord(word: string): Promise<boolean>
Swift declaration
class func hasLearnedWord(_ word: String) -> Bool
static · iOS 3.2+

learnWord

TypeScript
static learnWord(word: string): Promise<void>
Swift declaration
class func learnWord(_ word: String)
static · iOS 3.2+

unlearnWord

TypeScript
static unlearnWord(word: string): Promise<void>
Swift declaration
class func unlearnWord(_ word: String)
get · iOS 3.2+

availableLanguages

TypeScript
static get availableLanguages(): Promise<Array<string>>
Swift declaration
class var availableLanguages: [String] { get }
method · iOS 3.2+

completions

TypeScript
completions(range: SDKHandle, string: string, language: string): Promise<(Array<string>) | null>
Swift declaration
func completions(forPartialWordRange range: NSRange, in string: String, language: String) -> [String]?
method · iOS 3.2+

guesses

TypeScript
guesses(range: SDKHandle, string: string, language: string): Promise<(Array<string>) | null>
Swift declaration
func guesses(forWordRange range: NSRange, in string: String, language: String) -> [String]?
method · iOS 27.0+

ignoreGrammarRange

TypeScript
ignoreGrammarRange(grammarRange: SDKHandle, sentence: string): Promise<void>
Swift declaration
func ignoreGrammarRange(_ grammarRange: NSRange, inSentence sentence: String)
method · iOS 3.2+

ignoreWord

TypeScript
ignoreWord(wordToIgnore: string): Promise<void>
Swift declaration
func ignoreWord(_ wordToIgnore: String)
init

init

TypeScript
static init(): Promise<UITextChecker>
Swift declaration
init()
method · iOS 3.2+

rangeOfMisspelledWord

TypeScript
rangeOfMisspelledWord(stringToCheck: string, range: SDKHandle, startingOffset: number, wrapFlag: boolean, language: string): Promise<SDKHandle>
Swift declaration
func rangeOfMisspelledWord(in stringToCheck: String, range: NSRange, startingAt startingOffset: Int, wrap wrapFlag: Bool, language: String) -> NSRange
method · iOS 27.0+

requestGrammarChecking

TypeScript
requestGrammarChecking(stringToCheck: string, range: SDKHandle, waitForAllResults: boolean, completionHandler?: (((arg0: Array<_Foundation_NSTextCheckingResult>) => void)) | null): Promise<void>
Swift declaration
func requestGrammarChecking(of stringToCheck: String, range: NSRange, waitForAllResults: Bool) async -> [NSTextCheckingResult]
get · iOS 3.2+

ignoredWords

TypeScript
get ignoredWords(): Promise<(Array<string>) | null>
Swift declaration
var ignoredWords: [String]? { get set }
set · iOS 3.2+

ignoredWords

TypeScript
setIgnoredWords(value?: (Array<string>) | null): Promise<void>
Swift declaration
var ignoredWords: [String]? { get set }

Skipped declarations

No declarations were skipped in this snapshot.

All UIKit types →