GithubHelp home page GithubHelp logo

Comments (11)

Pluto-Y avatar Pluto-Y commented on July 21, 2024 4
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.

deya-eldeen avatar deya-eldeen commented on July 21, 2024 3

these work for me..

    self.slideMenuController()?.removeLeftGestures()
    self.slideMenuController()?.removeRightGestures()

from slidemenucontrollerswift.

ashishfission avatar ashishfission commented on July 21, 2024

Same requirement

from slidemenucontrollerswift.

gali8 avatar gali8 commented on July 21, 2024

try self.options.panFromBezel = false

from slidemenucontrollerswift.

giaotuancse avatar giaotuancse commented on July 21, 2024

same problem when trying to disable gesture. Anyone fix it?

FIXED IT: Add this line to your mainViewController
SlideMenuOptions.panFromBezel = false

from slidemenucontrollerswift.

veegee avatar veegee commented on July 21, 2024

@giaotuancse This doesn't work.

from slidemenucontrollerswift.

YoloKevinZou avatar YoloKevinZou commented on July 21, 2024

did anyone got this working? I'm trying to do the same thing.

from slidemenucontrollerswift.

YoloKevinZou avatar YoloKevinZou commented on July 21, 2024

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.

Pluto-Y avatar Pluto-Y commented on July 21, 2024

@haiqiang Please try it again and tell me the result.

from slidemenucontrollerswift.

YoloKevinZou avatar YoloKevinZou commented on July 21, 2024

@Pluto-Y it's working. Thank you very much :)

from slidemenucontrollerswift.

Pluto-Y avatar Pluto-Y commented on July 21, 2024

You are welcome.

from slidemenucontrollerswift.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.