I have UINavigationController as initial view controller which contains LoginViewController. After login, i am adding the SlideMenuController from the LoginViewController and after present completion i am setting the SlideMenuController as the rootviewcontroller. Code below,
But i want the animation effect and i also don't want to use the view's -CAAnimation for now. I want a better fix for this.
I changed the SlideMenu example project by adding one extra ViewController to produce the issue. Example project can be downloaded from the following path.
I have UINavigationController as initial view controller which contains LoginViewController. After login, i am adding the SlideMenuController from the LoginViewController and after present completion i am setting the SlideMenuController as the rootviewcontroller. Code below,
The issue i am facing is if i add UIAlertController in the mainViewController of SlideMenuController, it gives this error,
I also tried the following to check if it fixes the issue but got the same issue,
The workaround i found is, if i set the SlideMenuController as rootviewcontroller without animating like below,
appDelegate.window?.rootViewController = slideMenuController
But i want the animation effect and i also don't want to use the view's -CAAnimation for now. I want a better fix for this.
I changed the SlideMenu example project by adding one extra ViewController to produce the issue. Example project can be downloaded from the following path.
(https://www.dropbox.com/s/6fwe6z0swy1gxso/SlideMenuControllerSwift-master.zip?dl=0)