learnWord(_:)
Tells the text checker to learn the specified word so that it doesn’t evaluate it as misspelled.
Declaration
class func learnWord(_ word: String)Parameters
- word:
A string representing the word for the class to learn.
Discussion
When a UITextChecker object learns a word, it is added to the dictionary. It is global across languages.