material-motion-swift icon indicating copy to clipboard operation
material-motion-swift copied to clipboard

Explore composition of transitions

Open jverkoey opened this issue 8 years ago • 0 comments

Context: we have a collection of simple transitions and we'd like to compose them together to create complex transitions.

Example: a "push back" transition composed of a slide + scale transition.

One option:

// Turn this API:
vc.transitionController.transitionType = SlideTransition.self

// Into this API:
vc.transitionController.transitionTypes = [SlideTransition.self, ScaleTransition.self]

jverkoey avatar Apr 12 '17 20:04 jverkoey