Initializer

init(name:)

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

Declaration

convenience init(name: CAMediaTimingFunctionName)

Parameters

name

The timing function to use as specified in Predefined Timing Functions.

Return Value

A new instance of CAMediaTimingFunction with the timing function specified by name.

See Also

Creating Timing Functions

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

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