An object that provides a flexible method of defining animated transformations.
- iOS 3.0+
- macOS 10.6+
- Mac Catalyst 13.0+
- tvOS 9.0+
- Core Animation
You can use a value function to specify the individual components of an animated transform.
For example, to create a basic animation that rotates a layer from 0° to 180° around its z-axis, you would create a
CABasic object with a
pi, and a
value of a
CAValue with a function name of
The value functions
k require 3 values, for the individual
z components. When working with these value functions, you specify the animation's
to as arrays.