Protocol

UITimingCurveProvider

Provides the timing information needed to perform animations.

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.

Symbols

Getting the Timing Information

var timingCurveType: UITimingCurveType
Required.

The type of timing information to use.

var cubicTimingParameters: UICubicTimingParameters?
Required.

The cubic timing parameters to use.

var springTimingParameters: UISpringTimingParameters?
Required.

The spring-based timing parameters to use.

Constants

UITimingCurveType

Constants indicating the type of timing information to use.