UILexiconEntry
A read-only term pair, available within a lexicon object, for a custom keyboard.
Declaration
@MainActor class UILexiconEntryOverview
You can employ a lexicon entry by matching user input against the entry’s userInput value, and then inserting into the current text input object the corresponding documentText value. For example, if the user typed the string “iphone”, the lexicon entry with that exact, case-sensitive string in the userInput property has the string “iPhone” in the corresponding documentText property.
In some cases, the documentText string is in a different text script than the userInput string.
For information on custom keyboards, which are based on the UIInputViewController class, see Creating a custom keyboard.