An object that performs interpolation between values specified at different times (keyframes).
- iOS 7.0+
- macOS 10.9+
- Mac Catalyst 13.0+
- tvOS 9.0+
- watchOS 3.0+
The primary use for an
SKKeyframe object is to animate properties on particles emitted by an
SKEmitter object, but it can also be used for your general interpolation needs across a discrete set of inputs.
When a keyframe sequence is used with an emitter node, particles determine their values by sampling the keyframe sequence. The sequence replaces the normal simulation performed by the emitter node.