RufusV
RufusV

Reputation: 407

secureTextEntry not working

I am trying to make a password entry from a text field that ONLY be create programatically, NOT through interface builder, but when I try to set secureTextEntry to "true" however I just get a "Value of type 'UITextField' has no member 'secureTextEntry'"

myTextField.secureTextEntry = true

As I can't use the interface builder to turn secure text on, how can I get around this. All other questions relating to this seem to only be it not always working, not not exisisting.

Upvotes: 3

Views: 3360

Answers (1)

RufusV
RufusV

Reputation: 407

.secureTextEntry has been changed to .isSecureTextEntry in swift 3

Upvotes: 14

Related Questions