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

Add Sloppy Swiper delegate. #20

Closed stephenbalaban closed 7 years ago

stephenbalaban commented 7 years ago

This solves a few issues.

  1. I was having transition animation problems that caused my view controller to pop in front of the TabBar. I created a delegate protocol for both SloppySwiper and SSWAnimator that lets the end user set whether or not they want to animate the TabBar when swiping.
  2. I also added a delegate method that allows the end-user to set the amount of dimness that occurs during the transition animation.

I created two protocols so that the SSWAnimator class could be hidden from the end user of SloppySwiper.

stephenbalaban commented 7 years ago

I think this solves both issues #15 and #2.

We're currently using this in production for Dreamscope.

fastred commented 7 years ago

Thanks. This looks really good. Also backwards-compatible which is nice touch!