MMDrawerController icon indicating copy to clipboard operation
MMDrawerController copied to clipboard

Recognizing a Tap instead of Panning

Open bennettl opened this issue 9 years ago • 1 comments

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?

bennettl avatar Mar 16 '16 08:03 bennettl

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

gran33 avatar Apr 10 '16 06:04 gran33