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
Swift 3
// MARK: Btn EyeAction @IBAction func btnEyeAction(_ sender: Any) { if(iconClick == true) { txtPassword.isSecureTextEntry = false iconClick = false } else { txtPassword.isSecureTextEntry = true iconClick = true } }