can not get title from my button by using sender.title(for: .selected) – Ios swift
I am learning ios development. According to my tutorial, I have code as below for making a button reflection demo. import UIKit class ViewController: UIViewController { @IBAction func buttonPressed(_ sender: UIButton) { let title = sender.title(for: .selected)! let text =…