mutualmobile / MMDrawerController

A lightweight, easy to use, Side Drawer Navigation Controller
MIT License
6.76k stars 1.38k forks source link

Recognizing a Tap instead of Panning #439

Open bennettl opened 8 years ago

bennettl commented 8 years ago

I'm trying to have a custom button in my center view controller when tapped, opens the right view controller, and I have this piece of code

 drawerController.setGestureShouldRecognizeTouchBlock { (drawer, gesture, touch) -> Bool in

            var shouldRecognizeTouch = false

            if gesture is UITapGestureRecognizer{
                shouldRecognizeTouch = true

            }

            return shouldRecognizeTouch
        }

Anything I'm missing here?

gran33 commented 8 years ago

As far as I checked, it's always return a UIPanGestureRecognizer