Protocol

UITimingCurveProvider

An interface for providing the timing information needed to perform animations.

Declaration

@protocol UITimingCurveProvider

Overview

An object that adopts the UITimingCurveProvider protocol provides the timing information needed to perform animations with a UIViewPropertyAnimator object. A timing curve defines the velocity at which animated properties change to their new values over the duration of the animation. A custom timing curve provider can specify timing using the built-in UIKit curves, a cubic Bézier curve, a spring-based timing function, or a combination of timing information.

When implementing this protocol in a custom object, you must provide implementations for all of the properties. Use the timingCurveType property to specify which timing information your object provides. Configure the other properties with the actual timing curve values.

Topics

Getting the Timing Information

timingCurveType

The type of timing information to use.

Required.

cubicTimingParameters

The cubic timing parameters to use.

Required.

springTimingParameters

The spring-based timing parameters to use.

Required.

Constants

UITimingCurveType

Constants indicating the type of timing information to use.

Relationships

Inherits From

See Also

Timing Curves

UISpringTimingParameters

The timing information for animations that mimics the behavior of a spring.

UICubicTimingParameters

The timing information for animations in the form of a cubic Bézier curve.

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