Simple linear calculation between keyframe values.
- iOS 2.0+
- macOS 10.5+
- Mac Catalyst 13.0+
- tvOS 9.0+
Listing 1 shows how to create a keyframe animation object using linear interpolation.
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.