I currently have a UITextfield with an eye icon in it that when pressed is supposed to toggle the secure text entry on and off.
UITextfield
I know you can che
@IBAction func eye_toggle_clicked(sender: AnyObject) { if toggleBtn.tag == 0 { passwordTxt.secureTextEntry=true toggleBtn.tag=1 } else { passwordTxt.secureTextEntry=false toggleBtn.tag=0 } }