KyleGoddard / KGFloatingDrawer

A floating navigation drawer with an interesting animated presentation written in Swift.
MIT License
499 stars 79 forks source link

Pan Gesture #31

Open zjz2330 opened 7 years ago

zjz2330 commented 7 years ago

Would it be possible to have a pan gesture, to swipe right on the main view to open the drawer? Like in the stock Messages app, when in a message, you can swipe from the left of the screen to get back to the main view.

KyleGoddard commented 7 years ago

This might be able to be done without changes to the library (add the required delegation to tigger the open drawer method). I'm hesitant to add this for a couple of reasons. Namely that I wouldn't want the swipe for the drawer to override gestures for the app. If a developer uses a navigation controller in the centre view controller, which swipe takes priority? I'll investigate this for the next version.