dogo / AKSideMenu

Beautiful iOS side menu library with parallax effect. Written in Swift
MIT License
281 stars 50 forks source link

Navigation Bar Changes #65

Open jamalnasir opened 5 years ago

jamalnasir commented 5 years ago

I implemented the storyboard method of AKSideMenu. The problem I am facing is that the navigation bar changes to white and without back button. Whereas, it is fine with FirstControllerView.

It all happens when I set the animation to true, as:

self.sideMenuViewController!.setContentViewController(UINavigationController(rootViewController: self.storyboard!.instantiateViewController(withIdentifier: "firstViewController")), animated: true)

The other view controllers doesn't push if animation is set to false but the FirstViewController.

The normal background color for the navigation bar is maroon. It becomes white when push to other controllers other than FirstViewController.

The following is the normal navigation bar.

Screen Shot 2019-09-13 at 4 37 18 PM

This is the view after selecting another view. Also, notice there is no back button.

Screen Shot 2019-09-13 at 4 37 35 PM

The bottomline is that: - Navigation doesn't work if animation is set to false - Navigation bar Background color is changes to white and without back button.

So, how to make it work with animation set to true with the original navigation bar behavior?