Each keyframe value is used in turn, no interpolated values are calculated.
- iOS 2.0+
- macOS 10.5+
- Mac Catalyst 13.0+
- tvOS 9.0+
- Core Animation
Keyframe animations based on discrete calculation interpolation require one less element in the
values array than the
key array. Each
value / key pair represents the value from the specified time until the next keyframe.
A layer animated with the keyframe animation created by the code above and with linearly interpolated horizontal movement would describe a path similar to Figure 1.