Rightpoint / RZTransitions

A library of custom iOS View Controller Animations and Interactions.
MIT License
1.87k stars 187 forks source link

[Question] Implement RZTransitionInteractionController inside each view controller to make transition interactive? #56

Open Showtimes opened 8 years ago

Showtimes commented 8 years ago

On application launch I set the default animation controllers for RZTransitionsManager:

let manager = RZTransitionsManager.shared()
manager.defaultPresentDismissAnimationController = RZZoomPushAnimationController()
manager.defaultPushPopAnimationController = RZZoomPushAnimationController()

Custom transition is working well when I push or pop the view controller inside of navigation stack. But transition is not interactive. Pan gesture from screen edge closes view controller immediately and it’s not possible to stop the transition.

The question is: should I implement RZTransitionInteractionController inside each view controller to make transition interactive? Or, maybe, there’s an easier way?

alexrrouse commented 8 years ago

Hey, sorry for the slow response.

In order to have a transition that you can control the percent with you would need to implement the interactive methods, so you could use one the built in RZInteractionControllers such as RZBaseSwipeInteractionController or implement your own. If you don't use a Pop transition you should probably be able to get the default interaction as well.