This has been driving me nuts for almost 2 days now. I've tried just about everything, and can't get any results. Every post that addresses unwinding, doesn't seem to specifically address unwinding back to a ViewController in a different storyboard, let alone doing it programmatically. What am I doing wrong?????
I have two ViewControllers that reside in different storyboards...
I want to unwind from my SignupViewController located in my Signup storyboard to my LoginViewController located in my Login storyboard. I want to perform the unwind programmatically after the user successfully registers, receives a confirmation alert with an OK button, and clicks the OK button.
This is where I want to unwind from => to
This is how I am attempting to do it
So I create an unwindToLoginViewController action method in my LoginViewController.swift file like so...
And create a reference to it in my SignupViewController.swift file like so...
Subsequently, I get the reference as expected...
And set the Identifier in the same, so I can reference it in my code...
When I run my app, successfully register a user, I display a confirmation alert with an OK button. When the user clicks the OK button, I want to unwind to my LoginViewController, but NOTHING happens...
Any clues?????????