tokens
The collection of tokens in the search text field.
Declaration
var tokens: [UISearchToken] { get set }Discussion
Use this property to access existing tokens, or to replace all tokens at once. To convert text in the search field into a token, use replaceTextualPortion(of:with:at:).