---
title: tokenizer
framework: uikit
role: symbol
role_heading: Instance Property
path: uikit/uitextinput/tokenizer
---

# tokenizer

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

## Declaration

```swift
var tokenizer: any UITextInputTokenizer { get }
```

## Discussion

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

- [UITextInputTokenizer](uikit/uitextinputtokenizer.md)
