Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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.

like image 633
RufusV Avatar asked Sep 01 '26 02:09

RufusV


1 Answers

.secureTextEntry has been changed to .isSecureTextEntry in swift 3

like image 174
RufusV Avatar answered Sep 03 '26 16:09

RufusV



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!