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.

Beta Software

This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.

Learn more about using Apple's beta software