requestSupplementaryLexicon(completion:)
Obtains a supplementary lexicon of term pairs in a custom keyboard.
Declaration
func requestSupplementaryLexicon(completion completionHandler: @escaping (UILexicon) -> Void)func requestSupplementaryLexicon() async -> UILexiconParameters
- completionHandler:
Code that you write to make use of the returned
UILexiconobject.
Discussion
Call this method to obtain a UILexicon object containing a basic set of term pairs for use in autocorrection or textual suggestions based on user input. The UILexicon object contains words from various sources, including:
Unpaired first names and last names from the user’s Address Book database
Text shortcuts defined in the Settings > General > Keyboard > Shortcuts list
A common words dictionary
Consider this lexicon as a supplement to a more complete lexicon of your own design.