cwRichardKim / RKSwipeBetweenViewControllers

Swipe between ViewControllers like in the Spotify or Twitter app with an interactive Segmented Control in the Navigation Bar
MIT License
1.67k stars 156 forks source link

First Controller Behaviour #8

Closed marcelosalloum closed 9 years ago

marcelosalloum commented 9 years ago

Hi Folks,

I am willing to perform a custom action when I swipe left from the first controller.

In that case, there should be no controllers to the left and if that's true, I'd like to recognize it and make a custom action. Is that possible?

Thanks,

cwRichardKim commented 9 years ago

i've been thinking about how to do this and it's tough. The reason is because all the delegate functions are called hundreds of times, so when you swipe, you have to create a function that is capable of dealing with hundreds of calls. If you can think of a way to do this, let me know. How I got around it in my project is I put a thin UIView on the left border (about 5px I think), and I added a gesture on it. If it's the left-most VC, then it allows me to pull the menu.