Class

CAMediaTimingFunction

CAMediaTimingFunction represents one segment of a function that defines the pacing of an animation as a timing curve. The function maps an input time normalized to the range [0,1] to an output time also in the range [0,1].

Symbols

Creating Timing Functions

init(name: String)

Creates and returns a new instance of CAMediaTimingFunction configured with the predefined timing function specified by name.

init(controlPoints: Float, Float, Float, Float)

Returns an initialized timing function modeled as a cubic Bézier curve using the specified control points.

Accessing the Control Points

func getControlPoint(at: Int, values: UnsafeMutablePointer<Float>!)

Returns the control point for the specified index.

Constants

Predefined Timing Functions

Constants that specify system-provided timing functions, used by init(name:).

Relationships

Inherits From