We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Is it possible to disable open/close by swiping?
I want to disable swipe. when we click on UIBarButtonItem then it will open.
Thank You in advance
The text was updated successfully, but these errors were encountered:
@danmurrelljr help me
Sorry, something went wrong.
My solution to this problem is creating extension in your UIViewController like this:
extension UIViewController { func enableSideMenu() { if self.mm_drawerController != nil { self.mm_drawerController.openDrawerGestureModeMask = .bezelPanningCenterView } } func disableSideMenu() { if self.mm_drawerController != nil { self.mm_drawerController.openDrawerGestureModeMask = .init(rawValue: 0) } } }
After this in whatever view controller you want to disable your side menu call
self.disableSideMenu()
and to re-enable
self.enableSideMenu()
For Example:-
override func viewWillAppear(_ animated: Bool) { super.viewWillAppear(animated) self.disableSideMenu() }
override func viewDidDisappear(_ animated: Bool) { super.viewDidDisappear(animated) self.enableSideMenu() }
I hope this is helpful
No branches or pull requests
Is it possible to disable open/close by swiping?
I want to disable swipe. when we click on UIBarButtonItem then it will open.
Thank You in advance
The text was updated successfully, but these errors were encountered: