EZSwipeController
EZSwipeController copied to clipboard
dismissing VC
I added the EZSwipeController to my project, but it is not my rootViewController. On the first VC returned (index 0), I added a custom button on the left side to dismiss the entire VC, but it does not work. I tried all these:
self.navigationController!.popToRootViewController(animated: true) self.navigationController!.popViewController(animated: true) self.navigationController!.dismiss(animated: true, completion: nil) self.dismiss(animated: true, completion: nil)
This seems like a rather unique use case.
From what I can tell, you have a navigation controller which you're then adding an EZSwipe to as a child, and then trying to pop the EZSwipeController from a child controller in the EZSwipeController?
A-la: UINavigationController => MainViewController => EZSwipeController => [UIViewController]
If so, i'd have to take a closer look to ascertain why those aren't working, but a clearer picture of what your VC stack looks like would help significantly.
Thanks! Jon