dropInteraction(_:item:willAnimateDropWith:)
Tells the delegate the system’s drop animation is about to start.
Declaration
optional func dropInteraction(_ interaction: UIDropInteraction, item: UIDragItem, willAnimateDropWith animator: any UIDragAnimating)Parameters
- interaction:
The interaction that called this method.
- item:
The current drag item.
- animator:
The animator that provides custom animations to run alongside the system’s drop animation. You can also use it to add a completion block that runs after the animations have finished.
Discussion
This method is called for each drag item in the session, whether the item’s visible or not.