DDHCustomTransition
Helper classes to make basic view controller transitions easier.
Installation
Add CustomTransition.swift to your project.
Usage
- Create an instance of
NavigationControllerDelegate
and set to the delegate property of anUINavigationController
. - Make the view controllers participating in the transition conforming to the
TransitionInfoProtocol
protocol. - There is no step three.
TransitionInfoProtocol
The TransitionInfoProtocol
defines two required and one optional methods:
Let's say you want to animate a image view from the first view controller to the position of the second view controller (see the gif and the demo project). In the first view controller the protocol conformance could look like this:
In the second view controller it could look like this: