An optional array of
CAMedia objects that define the pacing for each keyframe segment.
- iOS 2.0+
- macOS 10.5+
- Mac Catalyst 13.0+
- tvOS 9.0+
- Core Animation
You can use this array to apply ease-in, ease-out, or custom timing curves to the points that lie between two keyframe values. If the number of keyframes in the values property is n, then this property should contain n
If you provide timing information in the
key property, the timing functions you specify using this property further modify the timing between those values. If you do not assign a value to the
key property, the timing functions modify the default timing provided by the animation object.
If you also specify a timing function in the animation object’s
timing property, that function is applied first followed by the timing function for the specific keyframe segment.
For information on how to create a timing function, see