<!--
{
  "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/values",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Property",
  "symbol" : {
    "kind" : "Instance Property",
    "modules" : [
      "Core Animation"
    ],
    "preciseIdentifier" : "c:objc(cs)CAKeyframeAnimation(py)values"
  },
  "title" : "values"
}
-->

# values

An array of objects that specify the keyframe values to use for the animation.

```
var values: [Any]? { get set }
```

## Discussion

The keyframe values represent the values through which the animation must proceed. The time at which a given keyframe value is applied to the layer depends on the animation timing, which is controlled by the [`calculationMode`](/documentation/QuartzCore/CAKeyframeAnimation/calculationMode), [`keyTimes`](/documentation/QuartzCore/CAKeyframeAnimation/keyTimes), and [`timingFunctions`](/documentation/QuartzCore/CAKeyframeAnimation/timingFunctions) properties. Values between keyframes are created using interpolation, unless the calculation mode is set to [`discrete`](/documentation/QuartzCore/CAAnimationCalculationMode/discrete).

Depending on the type of the property, you may need to wrap the values in this array with an <doc://com.apple.documentation/documentation/Foundation/NSNumber> of <doc://com.apple.documentation/documentation/Foundation/NSValue> object. For some Core Graphics data types, you may also need to cast them to `id` before adding them to the array.

The values in this property are used only if the value in the [`path`](/documentation/QuartzCore/CAKeyframeAnimation/path) property is `nil`.

## See Also

  [Core Animation Programming Guide](https://developer.apple.com/library/archive/documentation/Cocoa/Conceptual/CoreAnimation_guide/Introduction/Introduction.html#//apple_ref/doc/uid/TP40004514)



---

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)