Different back path after segue in swift

I am trying to segue from VC1 to VC3 which is really easy. Once I am in VC3, I want back button takes back user to VC2. Here is how Storyboard is setup in tab1 of a tabcontroller there is only one tableview(VC1). Tab2 has a tableview(VC2) which segues to a UIView(VC3). Now from tab1(VC1) user segues to VC3 but the back path I need to be VC2 in tab2 . I can easily make tab2 selected after segue from VC1 to VC3 but the back button still takes user to VC1.

Let me know if it is not cleat. Thank you

Replies

That's quite normal, back button is an unwind segue, so it leads you back to VC1.


Have a look at my answer in another thread to see how to do what you want:

h ttps://forums.developer.apple.com/thread/86229