How to set different font size for UIButton when it is pressed – Ios swift
I am trying to change font size of button itself after it was pressed. class ViewController: UIViewController { @IBOutlet weak var buttonToResize: UIButton! @IBAction func buttonTapped(_ sender: UIButton) { buttonToResize.titleLabel!.font = UIFont(name: "Helvetica", size: 40) // Also tried buttonToResize.titleLabel?.font =…