MMDrawerController
MMDrawerController copied to clipboard
Recognizing a Tap instead of Panning
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?
As far as I checked, it's always return a UIPanGestureRecognizer