material-motion-archive / starmap

Issue tracker for the starmap
https://material-motion.github.io/material-motion/
4 stars 0 forks source link

How do we configure transition directors? #74

Open jverkoey opened 7 years ago

jverkoey commented 7 years ago

The current API for using a TransitionDirector to govern a transition looks like so:

navigationController.mdm_transitionController.directorClass = directorClass

This API ensures a clean separation of concerns from the entity that chooses which transition to occur and the entity that makes the transition happen.

We should also provide some facility for configuring a transition before it happens.

Some options:

  1. Store state alongside the directorClass.
  2. Require the director to request data from the view controllers.