---
title: damping
framework: quartzcore
role: symbol
role_heading: Instance Property
path: quartzcore/caspringanimation/damping
---

# damping

Defines how the spring’s motion should be damped due to the forces of friction.

## Declaration

```swift
var damping: CGFloat { get set }
```

## Discussion

Discussion The default value of the damping property is 10. Reducing this value reduces the energy loss with each oscillation: the animated value will overshoot the toValue and the settlingDuration may be greater than the duration. Increasing the value increases the energy loss with each duration: there will be fewer and smaller oscillations and the settlingDuration may be smaller than the duration.

## See Also

### Configuring Physical Attributes

- [initialVelocity](quartzcore/caspringanimation/initialvelocity.md)
- [mass](quartzcore/caspringanimation/mass.md)
- [settlingDuration](quartzcore/caspringanimation/settlingduration.md)
- [stiffness](quartzcore/caspringanimation/stiffness.md)
