Esqarrouth / EZSwipeController

:point_up_2: UIPageViewController like Snapchat/Tinder/iOS Main Pages
MIT License
843 stars 71 forks source link

dismissing VC #42

Open YouKnowOJ opened 7 years ago

YouKnowOJ commented 7 years ago

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)

JFKingsley commented 7 years ago

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