UITextDocumentProxy
An object that provides textual context to a custom keyboard.
Declaration
@MainActor protocol UITextDocumentProxy : UIKeyInputMentioned in
Overview
Through conformance to the UIKeyInput protocol, a text document proxy enables a custom keyboard (which is based on the UIInputViewController class) to insert and delete text, to adjust the position of the insertion point, and to determine whether a text input object is empty. The text document proxy uses the keyboard’s textDocumentProxy property to do this.
For more about using a text document proxy, see UIInputViewController and Creating a custom keyboard.