Comments (11)
SlideMenuOptions.panFromBezel = false
SlideMenuOptions.rightPanFromBezel = false
This code can disable the pan for open the menu.
But it also can pan or tap gesture to close the menu.
Please try it.
from slidemenucontrollerswift.
these work for me..
self.slideMenuController()?.removeLeftGestures()
self.slideMenuController()?.removeRightGestures()
from slidemenucontrollerswift.
Same requirement
from slidemenucontrollerswift.
try self.options.panFromBezel = false
from slidemenucontrollerswift.
same problem when trying to disable gesture. Anyone fix it?
FIXED IT: Add this line to your mainViewController
SlideMenuOptions.panFromBezel = false
from slidemenucontrollerswift.
@giaotuancse This doesn't work.
from slidemenucontrollerswift.
did anyone got this working? I'm trying to do the same thing.
from slidemenucontrollerswift.
using the following will disable the pan gesture to close the menu as well.
self.slideMenuController()?.removeLeftGestures()
self.slideMenuController()?.removeRightGestures()
is there anyway to do what jasan-s commented?
"nav bar button to open but the pan gesture to close or tap back to other controller to close."
from slidemenucontrollerswift.
@haiqiang Please try it again and tell me the result.
from slidemenucontrollerswift.
@Pluto-Y it's working. Thank you very much :)
from slidemenucontrollerswift.
You are welcome.
from slidemenucontrollerswift.
Related Issues (20)
- I want to customise LeftMenuViewcontoller width. HOT 1
- there is a error while open left and right menu and remain some parts of main screen
- Could not build Objective-C module 'SlideMenuControllerSwift' HOT 3
- Shows a black screen and not able to access the functionalities
- Want to close menu when i tap on outside of UITableView in SlideMenuControllerSwift HOT 1
- SlideMenu blocks prefersHomeIndicatorAutoHidden
- iOS 13, pan gesture freezes app HOT 1
- Can we handle starching the Slide Menu
- Project Abandoned?
- Please update SlideMenuControllerSwift to latest version of Swift 5.1 HOT 2
- Status bar issue in iOS13 HOT 5
- In Swift 4.2 shows warning 'fabs' is deprecated: renamed to 'abs'
- I can't change side menu name in if else statement
- how to side status bar in xcode 11.4.1 while left menu appearing
- iOS - No such module SlideMenuControllerSwift HOT 2
- Scroll tableview inside SlideMenuControllerSwift
- Not load the leftViewcontroller page after return Appdelegate
- xcode 12 compatibility
- Provide An API for detecting whether the slideMenu is opened or closed. HOT 1
- Can I use the QR code directly?
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from slidemenucontrollerswift.