Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
Showtimes opened this issue Aug 7, 2016 · 1 comment

Comments

@Showtimes
Copy link

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
Copy link
Contributor

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants