Showing segue after button action
I think easiest way is using tags.
You can connect more then one button to one IBAction func. Just Make sure sender is UIButton.



After that change buttons tag property.



After changing tags. We just need to use switch-case

@IBAction func ButtonAction(_ sender: UIButton) {
      switch sender.tag {
            case 0:
                print("Button 1 Clicked")
            case 1:
                print("Button 2 Clicked")
            default: break
      }
}