fastred / SloppySwiper

UINavigationController delegate that allows swipe back gesture to be started from anywhere on the screen (not just from the edge).
MIT License
806 stars 107 forks source link

Swipe on Finger not working. #24

Open pankil9999 opened 7 years ago

pankil9999 commented 7 years ago

It will only work when you push only 1 ViewController. but it will not work when you push multiple ViewControllers.

For Example : Push 1st VC to 2nd VC than 2nd VC to 3rd VC than 3rd to 4th VC and than you try to pop with finger from 4th VC to 3rd VC, it will pop with Swipe effect but when you try to pop from 3rd VC to 2nd VC it will instantly pop to 2nd VC (Means it will not pop up based on my finger drag)

this is bug or am i missing something? How to fix this?

fastred commented 7 years ago

This works fine in the example project: https://github.com/fastred/SloppySwiper/tree/master/Example

pankil9999 commented 7 years ago

@fastred , i add below lines of code in MY RootNavigationController.
self.navigationBar.translucent = NO; self.swiper = [[SloppySwiper alloc]initWithNavigationController:self]; self.delegate = self.swiper; than it's working fine and when i add above lines of code in each UIViewController than above issue occur. Can you please suggest me how can i stop swipe effect in single ViewController?