So I have a storyboard with 3 buttons I want to just create 1 action for all those 3 buttons and decide what to do based on their label/id...
Is there a way to get s
@IBAction func buttonPressed(_ sender: UIButton) { if sender.tag == 1 { print("Button 1 is pressed") } }