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
Use UITextFiled rightView to show toggle button
var rightButton = UIButton(type: .custom) rightButton.frame = CGRect(x:0, y:0, width:30, height:30) yourtextfield.rightViewMode = .always yourtextfield.rightView = rightButton