Skip to content

An interactive UIViewController navigation controller transition example

Notifications You must be signed in to change notification settings

jmrhoades/interactive-transitions

Repository files navigation

Interactive View Controller Transitions

Easy to use custom interactive navigation controller transitions that work alongside storyboards. A screen capture from the example app

Try it

  1. Download the example project
  2. Locate the transition classes (like PanCubeNavigationTransition.swift) and add them to your project
  3. Create a transition object var transition = PanCubeNavigationTransition()
  4. Attach the transition's gestures to your view controller transition.addGestures(toViewController:self)
  5. Optionally add a storyboard ID for push transitions transition.nextStoryboardID = "SecondViewController" The example app

Why?

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.

About

An interactive UIViewController navigation controller transition example

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published