Keyframe
public struct Keyframe : XMLRepresentable
Undocumented
-
Specifies the possible interpolation modes that can be used in an individual keyframe of a keyframe animation.
Declaration
Swift
public enum Interpolation : String, Codable -
Specifies the possible curves that can be used in an individual keyframe of a keyframe animation.
Declaration
Swift
public enum Curve : String, Codable -
The time of the keyframe.
Declaration
Swift
public var time: CMTime -
The value of the keyframe.
Declaration
Swift
public var value: String -
The interpolation mode to use for the keyframe.
Declaration
Swift
public var interpolation: Interpolation -
The curve to use for the keyframe.
Declaration
Swift
public var curve: Curve -
Initializes a new keyframe.
Declaration
Swift
public init(time: CMTime, value: String, interpolation: Interpolation = .linear, curve: Curve = .smooth)Parameters
timeThe time of the keyframe.
valueThe value of the keyframe.
interpolationThe interpolation mode to use for the keyframe,
linearby default.curveThe curve to use for the keyframe,
smoothby default.
Keyframe Structure Reference