Creates a timing parameters object with the specified spring stiffness, mass, damping coefficient, and initial velocity.
- iOS 10.0+
- Mac Catalyst 13.0+
- tvOS 10.0+
The effective mass of the animated property. This value must be greater than
The spring stiffness coefficient. Higher values correspond to a stiffer spring that yields a greater amount of force for moving objects.
The damping force to apply to the spring’s motion. This value is used to compute the damping ratio.
The target property’s initial rate of change at the start of the spring animation. If the target property doesn’t change, specify a vector with
For details about how to calculate this velocity, see
An initialized spring timing parameters object or
nil if the object could not be created.
The damping ratio for the spring is computed from the formula
damping / (2 * sqrt (