Easy to use custom interactive navigation controller transitions that work alongside storyboards.
- Download the example project
- Locate the transition classes (like
PanCubeNavigationTransition.swift
) and add them to your project - Create a transition object
var transition = PanCubeNavigationTransition()
- Attach the transition's gestures to your view controller
transition.addGestures(toViewController:self)
- Optionally add a storyboard ID for
push
transitionstransition.nextStoryboardID = "SecondViewController"
After getting vaguely acquainted with the UIKit view controller transitioning APIs (Custom Transitions Using View Controllers), I wanted to create a dead-simple, drop-in transition helper that would play nice with storyboard-based projects. This approach led to self-contained classes that encapsulate the necessary gesture recognizers, transitioning protocols, navigation delegates and animations required to express a complete thought around interactive transitions.