Contents

allowsCopyingTokens

A Boolean that indicates whether the user can copy or drag tokens from the search field.

Declaration

var allowsCopyingTokens: Bool { get set }

Discussion

The default value for this property is true.

To support copying tokens, allowsCopyingTokens must be true and the search field’s delegate must also implement searchTextField(_:itemProviderForCopying:).

UISearchTextField enables the Copy command when a user selects text, even if the selection also includes tokens and allowsCopyingTokens is false.

See Also

Supporting token interactions