Instance Method

setKeyframeTime(_:for:)

Changes the time for a specific keyframe.

Declaration

func setKeyframeTime(_ time: CGFloat, for index: Int)

Parameters

time

The new time value for the keyframe.

index

The index of the keyframe to change.

See Also

Sequence Building

func addKeyframeValue(Any, time: CGFloat)

Adds a keyframe to the sequence.

func removeKeyframe(at: Int)

Removes a keyframe from the sequence.

func removeLastKeyframe()

Removes the last value in the sequence.

func setKeyframeValue(Any, for: Int)

Changes the value for a specific keyframe.

func setKeyframeValue(Any, time: CGFloat, for: Int)

Replaces a keyframe in the sequence with a new keyframe.