I have a UINavigation controller. The viewController contents is as follows
[RestaurantViewController, MenuViewController, ProductViewController]
In ProductViewController I call
self.navigationController?.present(sideViewController, animated:true, completion:nil)
This presents the view controller as expected. Now when I call self.dismiss/self.presentingViewController.dismiss from within sideViewController, the original NavigationController Resets to
[RestaurantViewController]
Why is this? I just want to dismiss and be returned to the presenting viewController
popToRootViewController
some where or you are using someone's library that calls thispopToRootViewController
– The Mach System