UITimingCurveProvider
An interface for providing the timing information needed to perform animations.
Declaration
@MainActor protocol UITimingCurveProvider : NSCoding, NSCopyingOverview
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.