init(dampingRatio:)
Creates a timing parameters object with the specified damping ratio.
Declaration
convenience init(dampingRatio ratio: CGFloat)Parameters
- ratio:
The damping ratio for controlling the spring’s behavior. For more damping and less oscillation, specify a value of
1. For less damping and more oscillation, specify values closer to0.
Return Value
An initialized spring timing parameters object or nil if the object could not be created.
Discussion
This method sets the initial velocity of any animated properties to 0.0.