i have VC1 and i present VC2 and then multiple VC's after it like in a flow,
VC3 -> VC4 -> VC5
Now i want VC5 to dismiss to VC2
, i have searched and tried code and call the view controller by name but it isn't working fine, can anyone let me know how i can get this flow and dismiss to specific view controller?.
You can use unwindSegues to "go back" one or more steps in your navigation hierarchy.
Refer https://developer.apple.com/library/archive/technotes/tn2298/_index.html