tokens(in:)
Returns the search field’s tokens that are within a given range.
Declaration
func tokens(in textRange: UITextRange) -> [UISearchToken]Parameters
- textRange:
The range specifying a subset of the tokens.
Return Value
The tokens contained within the provided range.
Discussion
Use this method to find out which tokens are included in the user’s current selection. You can provide a range that spans a mixture of tokens and text.