Contents

init(_:duration:timingCurve:)

Creates a new keyframe using the given value and timestamp.

Declaration

init(_ to: Value, duration: TimeInterval, timingCurve: UnitCurve = .linear)

Parameters

  • to:

    The value of the keyframe.

  • duration:

    The duration of the segment defined by this keyframe.

  • timingCurve:

    A unit curve that controls the speed of interpolation.