damping
Defines how the spring’s motion should be damped due to the forces of friction.
Declaration
var damping: CGFloat { get set }Discussion
The default value is 0.0. Increasing the value increases the energy loss with each oscillation: there will be fewer and smaller oscillations and time taken for the spring to settle will decrease.