Unwind with Swift

Credit goes to Natasha the Robot and her tutorial about unwinding written in Objective-C.

So what is an “Unwind Segue”?

An unwind segue, a.k.a exit segue can be used to traverse back through a series of segues. You will normally encounter an unwind segue via a popover returning data to the initiating view controller. Example:

 

Here’s the Swift translation to Natasha’s tutorial

ViewController.swift

ColorTableViewController.swift

Feel free to leave any comments and suggestions. And don’t forget to Git this project