<!--
{
  "availability" : [
    "iOS: 2.0.0 -",
    "iPadOS: 2.0.0 -",
    "macCatalyst: 13.1.0 -",
    "macOS: 10.5.0 -",
    "tvOS: 9.0.0 -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "QuartzCore",
  "identifier" : "/documentation/QuartzCore/CAKeyframeAnimation/calculationMode",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Property",
  "symbol" : {
    "kind" : "Instance Property",
    "modules" : [
      "Core Animation"
    ],
    "preciseIdentifier" : "c:objc(cs)CAKeyframeAnimation(py)calculationMode"
  },
  "title" : "calculationMode"
}
-->

# calculationMode

Specifies how intermediate keyframe values are calculated by the receiver.

```
var calculationMode: CAAnimationCalculationMode { get set }
```

## Discussion

The possible values are described in [Value calculation modes](/documentation/QuartzCore/value-calculation-modes). The default value of this property is [`linear`](/documentation/QuartzCore/CAAnimationCalculationMode/linear).

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)