Contents

tokenizer

An input tokenizer that provides information about the granularity of text units.

Declaration

var tokenizer: any UITextInputTokenizer { get }

Discussion

Standard units of granularity include characters, words, lines, and paragraphs. In most cases, you may lazily create and assign an instance of a subclass of UITextInputStringTokenizer for this purpose. If you require different behavior than this system-provided tokenizer, you can create a custom tokenizer that adopts the UITextInputTokenizer protocol.

See Also

Tokenizing input text