Contents

completionVelocity

Returns the starting velocity to use for any final animations.

Declaration

var completionVelocity: CGFloat { get }

Return Value

The completion velocity for the view controller transition. A value of 1.0 corresponds to an animation that would complete in the duration returned by the transitionDuration method. Higher values cause the animations to move faster by the corresponding factor and lower values cause it to move slower. The value of this property is always greater than 0.0.

Discussion

The completion velocity provides the starting speed to use at the end of an interactive animation. Setting the initial speed of your animations ensures that views don’t change velocity abruptly. This value is usually obtained from the completionVelocity property of the interactive animator object.

See Also

Getting the behavior attributes