Firstly, thanks for the library. It's saved me a lot of time.
I have a UIBarButtonItem in my NavigationController that runs a revealToggle: on press. That's pretty standard. But I'd like to mimic a behaviour that I've seen on a few apps that makes the UIBarButton (with the hamburger icon) also have a PanGesture to reveal/close the sidebar.
I've added a PanGesture to my UIBarButtonItem's customView and it works fine. Except, on the other places in my VC with the panGesture, they all seem to be losing their pan gesture. Can the PanGestureRecogniser be on only one thing at a time?
Apologies if this is a general iOS question.
Regards,
Mike
Alternatively, you could enable swiping from the edge of the view controller. You will be able to swipe from the hamburger button if you do so (just tried it, it works).
Hi,
Firstly, thanks for the library. It's saved me a lot of time.
I have a UIBarButtonItem in my NavigationController that runs a revealToggle: on press. That's pretty standard. But I'd like to mimic a behaviour that I've seen on a few apps that makes the UIBarButton (with the hamburger icon) also have a PanGesture to reveal/close the sidebar.
I've added a PanGesture to my UIBarButtonItem's customView and it works fine. Except, on the other places in my VC with the panGesture, they all seem to be losing their pan gesture. Can the PanGestureRecogniser be on only one thing at a time?
Apologies if this is a general iOS question. Regards, Mike