setSecureTextEntry(_:)
Determines whether the text field hides the text entered by the user.
Declaration
func setSecureTextEntry(_ secureTextEntry: Bool)Discussion
Pass true to help keep passwords and other secure data private. When you enable secure text entry, the system displays a series of dots instead of the text entered by the user.