drop(_:to:)
Animates the item to an arbitrary location in your view hierarchy.
Declaration
func drop(_ dragItem: UIDragItem, to target: UIDragPreviewTarget) -> any UIDragAnimatingParameters
- dragItem:
The item that you want to drop.
- target:
The location at which to drop the item, specified as a point in a view. You can also use the Uidragpreviewtarget object to specify a final transform to apply to the content.
Discussion
Use this method to animate drops to any view in your app. For example, you might use this method to drop items onto a tab bar or toolbar that is part of your interface.