Unwind segue is used to navigate back through push/popover/modal segues. It is also known as exit segue and the major advantage of unwind segue is that we can navigate back multiple push/popover/modal segues with a single unwind action.
You can pop/dismiss multiple controllers with single unwind action.
Now for that we have to add action to the controller where you want to unwind the segue.
@IBAction func unwindToVC(segue: UIStoryboardSegue) { print("Inside unwind segue") }
Now after that add the action to unwind segue from whichever controller you want to unwind the segue
You are good to go with the unwind segue and you can even get the project from Github
Thanks !
Related Tags
More From Oodles
Ready to innovate? Let's get in touch
Cookies are important to the proper functioning of a site. To improve your experience, we use cookies to remember log-in details and provide secure log-in, collect statistics to optimize site functionality, and deliver content tailored to your interests. Click Agree and Proceed to accept cookies and go directly to the site or click on View Cookie Settings to see detailed descriptions of the types of cookies and choose whether to accept certain cookies while on the site.
About Author
Manu Gupta
Manu is a Native iOS (Swift) and Titanium lead developer . Manu has good experience working with Swift and Alloy framework as well. He loves watching movies and travelling.