Fine tune the fab transition to support different contexts.
ClosedPublic

Authored by featherless on Thu, May 18, 4:28 PM.

Details

Summary

Added a new fab transition example to the catalog. This new example allows you to pick the type of target the fab will animate to.

The fab transition now makes use of an internal Motion type that captures the motion information from our fab specifications. The transition can be thought of in terms of three essential parts:

  1. The motion information. These are the raw numbers we'll use in different contexts, e.g. toolbar collapse or fullscreen expansion.
  2. The motion router. Inspects the transition context and chooses which motion to use.
  3. The animations. Turns a motion object into a set of animations and applies them to the relevant properties.

Diff Detail

Repository
R50 material-motion-components-swift
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.
featherless created this revision.Thu, May 18, 4:28 PM
Restricted Application added a reviewer: O2: Material Motion. · View Herald TranscriptThu, May 18, 4:28 PM
Restricted Application added a project: Material Motion. · View Herald Transcript
Restricted Application added a reviewer: O4: Material Apple platform reviewers. · View Herald Transcript
Restricted Application added a reviewer: Material Motion. · View Herald Transcript
This revision is now accepted and ready to land.Thu, May 18, 5:16 PM
This revision was automatically updated to reflect the committed changes.