Transition is a library that helps you build iOS view controller transitions. Implementing a nice interactive custom view controller transition involves quite a number of components. You have to implement the correct delegates, handle the switching between passive animation and active interaction phases, ensure the timing is right, think of interruption and cancellation, keep responsibilities separated... It quickly gets messy! This is where Transition helps you out: you just define the animation and the interaction, Transition ties it all together. Your AnimationLayer is defined as a part of your TransitionAnimation. This represents all (non-interactive) animation during a transition. The TransitionAnimation protocol exposes an array of AnimationLayers. Additionally, it contains two functions; one for setup and one for completion. Before starting the animation, your setup function will be called, passing you the transitioningContext that among others contains the fromView and toView.
Features
- Specify single-responsibility components (animation, interaction, ...)
- Transition ties them together
- Implement custom UITabBarController transition animations with custom interaction
- Implement custom modal transition animations that include interaction with a shared element
- Small collection of built-in transition animations
- Requires iOS 10.0+