Instance Method

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: 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.

See Also

Animating the Drop

func dropInteraction(UIDropInteraction, concludeDrop: UIDropSession)

Tells the delegate the drop activity and its related animations have finished.

Beta Software

This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.

Learn more about using Apple's beta software