Animations

  • The SpringAnimation struct is an implementation of ValueAnimationType that uses a configurable spring function to animate the value.

    Spring animations do not have a duration. Instead, you should configure the properties in ‘configuration’ to customize the way the spring will change the value as the simulation advances. The animation is finished when the spring has come to rest at its target value.

    SpringAnimation instances use a DynamicSolver containing a SpringFunction internally to perform the spring calculations.

    See more

    Declaration

    Swift

    public struct SpringAnimation<Value: VectorConvertible>: ValueAnimationType