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
time
The time of the keyframe.
value
The value of the keyframe.
interpolation
The interpolation mode to use for the keyframe,
linear
by default.curve
The curve to use for the keyframe,
smooth
by default.