Contents

init(response:dampingRatio:)

Creates a spring with the specified response and damping ratio.

Declaration

init(response: Double, dampingRatio: Double)

Parameters

  • response:

    Defines the stiffness of the spring as an approximate duration in seconds.

  • dampingRatio:

    Defines the amount of drag applied as a fraction the amount needed to produce critical damping.

See Also

Creating a spring