---
title: paced
framework: quartzcore
role: symbol
role_heading: Type Property
path: quartzcore/caanimationcalculationmode/paced
---

# paced

Linear keyframe values are interpolated to produce an even pace throughout the animation.

## Declaration

```swift
static let paced: CAAnimationCalculationMode
```

## Discussion

Discussion kCAAnimationPaced gives a linearly interpolated animation, but keyTimes and timingFunction are ignored and keyframe times are automatically generated to give the animation a constant velocity. The following code shows how to create a keyframe animation object using paced interpolation. Listing 1. Creating paced key values let keyframeAnimation = CAKeyframeAnimation(keyPath: "position.y") keyframeAnimation.calculationMode = kCAAnimationPaced keyframeAnimation.values = [310, 60, 120, 60, 310] A layer animated with the keyframe animation created by the code above and with linearly interpolated horizontal movement would describe a path similar to the following figure.

## See Also

### Constants

- [linear](quartzcore/caanimationcalculationmode/linear.md)
- [discrete](quartzcore/caanimationcalculationmode/discrete.md)
- [cubic](quartzcore/caanimationcalculationmode/cubic.md)
- [cubicPaced](quartzcore/caanimationcalculationmode/cubicpaced.md)
