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

# initialVelocity

The initial velocity of the object attached to the spring.

## Declaration

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

## Discussion

Discussion Defaults to 0, which represents an unmoving object. Negative values represent the object moving away from the spring attachment point, positive values represent the object moving towards the spring attachment point.

## See Also

### Configuring Physical Attributes

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