removeItem(_:)
Removes the specified dynamic item from the gravity behavior.
Declaration
func removeItem(_ item: any UIDynamicItem)Parameters
- item:
The dynamic item that you want to remove. If the specified item is not associated with the behavior, this method does nothing.
Discussion
If the gravity behavior has an associated dynamic animator, this method notifies the dynamic animator of the removal of the item so that it can stop any associated animations.