Contents

bouncy(duration:extraBounce:)

A spring with a predefined duration and higher amount of bounce that can be tuned.

Declaration

static func bouncy(duration: TimeInterval = 0.5, extraBounce: Double = 0.0) -> Spring

Parameters

  • duration:

    The perceptual duration, which defines the pace of the spring. This is approximately equal to the settling duration, but for very bouncy springs, will be the duration of the period of oscillation for the spring.

  • extraBounce:

    How much additional bounce should be added to the base bounce of 0.3.

See Also

Getting built-in springs