##Requirements
- iOS 8+, Swift.
##Installation
- Download or clone the project and copy the contents of the SKKNavigationBarTransition folder into your project.
- Create a property for the animation controller in the view controller you want the custom transition to happen from.
let navBarAnimationController = KKPanAnimationController()
- Adhere to the
UIViewControllerTransitioningDelegate
protocol in the sameUIViewController
that contains the animation controller property. - Before presenting the new
UIViewController
you must set the following properties on the controller:- Set the
.modalPresentationStyle = .Custom
- Set the
.transitioningDelegate
to the view controller that implemented theUIViewControllerTransitioningDelegate
protocol.
- Set the
NOTE: This is the standard process for implementing any custom transition. Please see the sample project if you get confused.