Contents

init(animationCurve:)

Initializes the object with the specified UIKit timing curve.

Declaration

init(animationCurve curve: UIView.AnimationCurve)

Parameters

  • curve:

    The UIKit timing curve to use for the animations. You can specify a linear animation or an animation whose initial or final speed is slightly slower.

Return Value

An initialized timing parameter object or nil if the object could not be created.

Discussion

Use this method to create a timing curve that uses the standard UIKit timing curves such as UIView.AnimationCurve.easeIn, UIView.AnimationCurve.easeOut, UIView.AnimationCurve.easeInOut, or UIView.AnimationCurve.linear.

See Also

Initializing a cubic timing parameters object