UICubicTimingParameters
The timing information for animations in the form of a cubic Bézier curve.
Declaration
@MainActor class UICubicTimingParametersOverview
Use a UICubicTimingParameters object to specify custom timing curves when creating animations with objects that adopt the UIViewAnimating protocol, such as UIViewPropertyAnimator.
A cubic Bézier timing curve consists of a line whose starting point is (0, 0), whose end point is (1, 1), and whose shape is defined by two control points. The slope of the line at each point in time defines the speed of the animation at that time. Steep slopes cause animations to appear to run faster and shallower slopes cause them to appear to run slower. The following graph shows a timing curve where the animations start fast and finish fast but run more slowly through the middle section.
[Image]