A tokenizer, which is an object that allows the text input system to evaluate text units of different granularities.
Mac Catalyst 13.0+Beta
Granularities of text units are always evaluated with reference to a storage or reference direction.
Text-processing objects that conform to the UITextInput protocol must hold a reference to a tokenizer (via the tokenizer property). The UITextInputStringTokenizer class provides a default base implementation of the UITextInputTokenizer protocol. Tokenizers of this class are suitable for most western-language keyboards. Apps with different requirements may adopt the UITextInputTokenizer protocol and create their own tokenizers.
Determining Text Positions Relative to Unit Boundaries
This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.