I have an instance of a class that handles and implements swipe navigation between my view controllers. I have a method in that class that allows me to simulate a swipe navigation to another view controller.
In a perfect scenario I would add a button to a view controller in the IB and in its action call that method of the handler class in order to navigate to the other view controller.
It seems like what I'm trying recreates an instance and obviously doesn't work because it doesn't have all the info the other instance has.
I also tried adding a subview of a button to my view controller from the handler class itself and that worked but I wanted to know if there was a prettier way.
Maybe access the already existing instance of the class from my other view controller in order to call the method?
I've tried swipe().navigateToLeftVC() and that recreates instance.