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).
TransitionInteractiveController
performs thenavigationAction
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 aUITableView
we want to make sure thecontentOffset.y
is0
before starting a transition triggered by aPan.regular(.fromTop)
.