Anchor2DKeyframe

public struct Anchor2DKeyframe : Hashable

An Anchor2D keyframe. A keyframe consists of a value and an animation duration.

  • Anchor2D keyframe value.

    Declaration

    Swift

    public let value: Anchor2D
  • Relative animation duration for reaching the keyframe value. Negative duration value gets clamped to 0.

    Declaration

    Swift

    public let duration: TimeInterval
  • Constructs a Anchor2DKeyframe from the value and offset.

    Declaration

    Swift

    public init(value: Anchor2D, duration: TimeInterval)

    Parameters

    value

    Anchor2D keyframe value.

    duration

    Relative animation duration for reaching the keyframe value. Negative duration value gets clamped to 0.