marcosgriselli / EasyTransitions

A simple way to create custom interactive UIViewController transitions
MIT License
1.68k stars 91 forks source link

Support UIScrollView (+subclasses) handling in TransitionInteractiveController #3

Closed marcosgriselli closed 6 years ago

marcosgriselli commented 6 years ago

TransitionInteractiveController performs the navigationAction only depending on the swipe velocity. We want to support parameterized handling so we can start the transition only if a requirement is met before swiping.

For example if our presented UIViewController has a UITableView we want to make sure the contentOffset.y is 0 before starting a transition triggered by a Pan.regular(.fromTop).