Search criteria 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 such as deleting, selecting, or dragging. A search token should always have text and may also have an icon.
represented to each search token that's meaningful to your app. By attaching this extra data to the token 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.