isSecureTextEntry
A Boolean value that indicates whether a text object disables copying, and in some cases, prevents recording/broadcasting and also hides the text.
Declaration
optional var isSecureTextEntry: Bool { get set }Discussion
This property is set to false by default. Setting this property to true in any view that conforms to UITextInputTraits disables the user’s ability to copy the text in the view and, in some cases, also disables the user’s ability to record and broadcast the text in the view.
Setting this property to true in a UITextField object additionally enables a password-style experience, in which the text being entered is obscured.