A function that defines the pacing of an animation as a timing curve.
- iOS 2.0+
- macOS 10.5+
- UIKit for Mac 13.0+Beta
- tvOS 9.0+
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
You can create a media timing function by supplying your own cubic Bézier curve control points using the
init(controlPoints:_:_:_:) method or by using one of the predefined timing functions.
Creating Timing Functions
Accessing the Control Points
Methods that model a hierarchical timing system, allowing objects to map time between their parent and local time.
A timer object that allows your application to synchronize its drawing to the refresh rate of the display.
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