Guides

Architecture

This library defines a format for representing motion in Objective-C and Swift applications. The
primary data type, MotionTiming, allows you to describe the duration, delay, timing curve, and
repetition for an animation.

How to define a spring animation

How to define a motion spec

Motion timing structs can be used to represent complex multi-element and multi-property motion
specifications. An example of a common complex motion spec is a transition which has both an
expansion and a collapse variant. If we wanted to represent such a transition we might create a
set of structures like this: