Instance Property

isSecureTextEntry

Identifies whether the text object should disable text copying and in some cases hide the text being entered.

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. Setting this property to true in a UITextField object additionally enables a password-style experience, in which the text being entered is obscured.

See Also

Managing the Keyboard Behavior

var enablesReturnKeyAutomatically: Bool

A Boolean value indicating whether the Return key is automatically enabled when the user is entering text.