ReSwift / ReSwift-Router

Declarative Routing in Swift, Extension for ReSwift
MIT License
496 stars 81 forks source link

Question: Interactive Transition? #35

Open ironforward opened 8 years ago

ironforward commented 8 years ago

Does this router support interactive transitions? Successfully presenting the next view controller always works of course, but is there a way to handle cancelling the transition so the router won't think it's made it to the next routable when it really has not?

Ben-G commented 8 years ago

@kevinfez Currently there's no support for cancellation. Though in theory it shouldn't be too hard to implement. We already have a completionHandler that is passed in order to asynchronously update the router once an animated transition is completed. What is missing is an equivalent cancellation handler.

I can't make any promises on whether this will be implemented or not, but I'll keep this issue open since it's a good suggestions. PRs are also always welcome!