Instance Property

allowsDeletingTokens

A Boolean that indicates whether the user can remove tokens from the search field.

Declaration

var allowsDeletingTokens: Bool { get set }

Discussion

The default value for this property is true.

You can always remove tokens programmatically. When this value is true, the user can also delete tokens and your app needs to handle tokens being re-added to the field with Undo.

See Also

Supporting Token Interactions

var allowsCopyingTokens: Bool

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

var delegate: UITextFieldDelegate?

The receiver’s delegate.

protocol UISearchTextFieldDelegate

A method that supports cutting, copying, and dragging tokens from a search field.

protocol UISearchTextFieldPasteItem

A protocol that supports pasting tokens.