Contents

timingCurve(_:duration:)

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

Declaration

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

Parameters

  • curve:

    A curve that describes the speed of the animation over its duration.

  • duration:

    The duration of the animation, in seconds.

See Also

Creating custom animations