Swift: performSegueWithIdentifier during unwind not working
<p>I've created a typical unwind flow from my view controller #2 to back to view controller #1 using a programmatically created button using the segue to Exit technique.</p>

<p>I have trace statements that confirm that the button code is executing perfectly and that the #2 <strong>performSegueWithIdentifier</strong> func is being called with the correct segue ID, but nothing happens. </p>

<p><strong>To clarify:</strong> </p>

<p>I've connect the view controller #2 to the Exit and confirmed the segue ID is exact in all places. I traced the #2 identifier in the #2 <strong>performSegueWithIdentifier</strong> func and it matches perfectly. </p>

<p>As I understand it, I no longer need to use the <strong>dispatch</strong> fix with the current version of 2016 XCode. I tried it anyway and nothing worked. There is no crash, just no unwinding. </p>

<p>Somehow the unwind technique isn't reversing using this Exit technique. Any ideas?</p>

<p>I've been following the tutorial here: <a href="https://spin.atomicobject.com/2014/12/01/program-ios-unwind-segue/" rel="nofollow">https://spin.atomicobject.com/2014/12/01/program-ios-unwind-segue/</a></p>

<p>CODE VC #2:</p>

<pre><code>// action func wired to button, fires perfectly
func unwind(seg:UIStoryboardSegue!) {

    self.performSegueWithIdentifier("unwind", sender: self)
}
</code></pre>