A search criterion in a search text field, represented by text and an optional icon.
- iOS 13.0+
- Mac Catalyst 13.0+
Use search tokens to help users understand and edit complex search queries in a
UISearch. A token acts like a single character in standard text interactions, like deleting, selecting, or dragging. A search token should always have text and may also have an icon.
represented on each search token that's meaningful to your app. That way you can reconstruct the full search query using information available in the search field when, for example, your app starts from state restoration or the user starts a search.