When I drag from a button on the storyboard to my view controller Swift file, I only get the option to insert an Outlet or Outlet Collection.
Similarly, if I create the
For me, I was trying to connect multiple buttons to one IBAction, none of the solutions worked until I switched my method signature to specify that the sender was a UIButton rather than Any
IBAction
UIButton
Any
@IBAction func buttonPressed(_ sender: UIButton) { }