KyleGoddard / KGFloatingDrawer

A floating navigation drawer with an interesting animated presentation written in Swift.
MIT License
499 stars 79 forks source link

Swapping between centreViewcontrollers? #24

Open Antuaaan opened 8 years ago

Antuaaan commented 8 years ago

When I first run my app I call one centreViewController with no drawers (Login). Then after login I call a new centreViewController with appDelegate.centerViewController = appDelegate.navigationBarController() which only works if I restart the app. Am I missing something?

The logout seems fine though appDelegate.centerViewController = appDelegate.drawerSettingsViewController() which puzzles me a bit because then I think I'm on the right track?

Am I supposed to only use normal segues and such first and then only call the drawerViewController?

Antuaaan commented 8 years ago

Realised that the viewControllers were not being deinitialised after the centreVC was changed so added self.dismissViewControllerAnimated(false, completion: {}) each time I change the centreVC.

KyleGoddard commented 7 years ago

I don't fully understand the issue here, do you have sample code that illustrates the problem, or is this now resolved?