Contents

linearVelocity(for:)

Returns the linear velocity for a specified dynamic item.

Declaration

func linearVelocity(for item: any UIDynamicItem) -> CGPoint

Parameters

  • item:

    The dynamic item whose linear velocity you want to get.

Return Value

The linear velocity of the specified dynamic item, in points per second.

See Also

Configuring a dynamic item behavior