I use the library for the side menu https://github.com/sascha/DrawerController/ - this is the port on the swift library https://github.com/mutualmobile/MMDrawerController

The library is well able to recognize and share the svayp back in UINavigationController and svayp to open the side menu. But at the same time, if you hide the NavigationBar svayp back stops working. If you google the problem, then this is the solution . They advise you to make interactivePopGestureRecognizer? .Delegate = nil and it works but not with DrawerController.

Video with the bug - https://www.youtube.com/watch?v=HgayLC5a_Ik

Demo project - https://github.com/nullproduction/SliderApp

I collected a special demo project to show the bug + I shot a video of the problem. In the video, I show that the first works and the spipe back and the side menu of the spipe, then I hide the navigationBar and show that the svayp back does not work anymore.

The first thing I did was create an issue in the library repository https://github.com/sascha/DrawerController/issues/38 . I was told that this is not a library problem but a UIKit problem and closed the issue.

Any ideas how you can solve this problem?

    1 answer 1

    I hid the navbar through the variable navigationBarHidden = true

    The solution turned out to be using the setNavigationBarHidden method (true, animated: false). Apparently some additional manipulations are made inside the method that are different from the setter of the navigationBarHidden. Magic!

    navigationController?.setNavigationBarHidden(true, animated: false) navigationController?.interactivePopGestureRecognizer!.delegate = self