Contents

init(to:by:timing:isAdditive:)

Creates a new from to by action to animate towards a final value. The starting value is determined by adding the inverse of by to the specified final value.

Declaration

init(to: Value, by: Value, timing: AnimationTimingFunction = .linear, isAdditive: Bool = false)

Parameters

  • to:

    Value set at the end of the animation.

  • by:

    Value used to determine the starting value, relative to the end value.

  • timing:

    Controls the progress of the animation.

  • isAdditive:

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

Discussion

to - byto