How do you get a swipe back to UINavigationController with DrawerController?



  • I'm using a library for the Side Menu. https://github.com/sascha/DrawerController/ - it's a port on a swift library. https://github.com/mutualmobile/MMDrawerController

    The Library is perfectly capable of detecting and sharing the back-to-UINavigationController and the side menu. But if you hide NavigationBar, it's not working back. If you googling the problem, it's there. https://stackoverflow.com/questions/24710258/no-swipe-back-when-hiding-navigation-bar-in-uinavigationcontroller ♪ They're advised to do it. interactivePopGestureRecognizer?.delegate = nil and it works but not with DrawerController.

    Bago video... https://www.youtube.com/watch?v=HgayLC5a_Ik

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

    I've got a special demo project to show the bahou + take off the video problem. I show on the video that it's working and spike back and spike a menu, then I close navigationBar, and I show that it doesn't work back.

    The first case created a issue in the library repository https://github.com/sascha/DrawerController/issues/38 I was told that wasn't the library problem, but the UIKit problem and closed the issue.

    Any idea how this problem can be solved?



  • I was hiding the nabar through the variable. navigationBarHidden = true

    The decision was based on the method setNavigationBarHidden(true, animated: false). There appears to be some extra manipulation inside the method that is different from the navigation grid. Bear!

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



Suggested Topics

  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2