clearButtonMode
A mode that controls when the standard Clear button appears in the text field.
Declaration
var clearButtonMode: UITextField.ViewMode { get set }Discussion
The standard clear button displays at the right side of the text field when the text field has contents, providing a way for the user to remove text quickly.
This button appears automatically based on the value of this property. The default value for this property is UITextField.ViewMode.never.