A proxy to the text input object that the custom keyboard is interacting with.
- iOS 8.0+
- Mac Catalyst 13.0+
- tvOS 9.0+
This property conforms directly or indirectly to the following protocols:
UITextprotocol provides textual context around the insertion point
UIKeyprotocol provides the insert and delete methods, and lets you find out if the text object is empty
UITextprotocol provides insight into the characteristics of the text input object, such as whether it requests a style of autocapitalization and which sort of keyboard it expects (for example, email address, URL, number pad, or default).
Employ this property to interact with the current text input object. For example, to insert text you would write code like this:
To delete text, you’d write code like this: