I have been looking for an answer for this on SO without success.
I have UIViewController
A and B. They are NOT linked in Storyboard, and I want to perform a Segue
from A to B, and upon clicking a button in B, to activate an unwindSegue
to A.
So far I have :
1) The @IBAction
in A to unwind back to
2) The function to prepare the Segue from A to B (In A)
3) The button to call the unwindSegue
from B to A
What I'm missing is the logic of the function in 2.
More info about B:
Title: FilterView Class: FilterViewController Storyboard ID: FilterView
I tried creating a segue:
let segueToFilter = UIStoryboardSegue(identifier: "SegueToFilterView", source: self, destination: FilterViewController)
Thinking this might just get me what I need.
but I get this error:
Cannot convert value of type 'FilterViewController.Type' to expected argument type UIViewController
Help would be appreciated :)