Contents

timingCurve(_:duration:)

Creates a new animation with speed controlled by the given curve.

Declaration

static func timingCurve(_ curve: UnitCurve, duration: TimeInterval) -> Animation

Parameters

  • duration:

    The duration of the animation, in seconds.

See Also

Creating custom animations