A method that supports cutting, copying, and dragging tokens from a search field.
- iOS 13.0+
- Mac Catalyst 13.0+
A search field asks its delegate for an
NSItem when the user starts to copy or move a token. To support these interactions, set the search field's
delegate to an instance of
UISearch that implements
search and set the search field's
allows property to
The search field’s
paste handles pasting and dropping tokens as well as text.