Contents

init(from:to:mode:timing:isAdditive:)

Creates a new action that interpolates towards a specified final transform.

Declaration

init(from: Value? = nil, to: Value, mode: FromToByAction<Value>.TransformMode = .default, timing: AnimationTimingFunction = .linear, isAdditive: Bool = false)

Parameters

  • from:

    Transform set at the start of the animation, or nil to use the default source.

  • to:

    Transform set at the end of the animation.

  • mode:

    Determines what space the transforms are relative to.

  • timing:

    Controls the progress of the animation.

  • isAdditive:

    Specifies whether you can additively blend the output from the action’s animation.

Discussion

defaultSourceto or defaultSourceto