[Solved] How to hide show UIButton text not button in IOS Swift [closed]
As you are saying that you can’t nil the button’s text, you should do this, You can implement this Bool extension also, extension Bool { mutating func toggle() { self = !self } } @IBAction func myButton(_ sender: UIButton) { sender.titleLabel?.isHidden.toggle() } this will show and hide your Button’s titleLabel text. UPDATE @IBAction func btnTapped(_ … Read more