DropSession
A description of a drop that is in progress.
Declaration
struct DropSessionOverview
Read location to find where the drop landed, itemsCount for how many items it carries, and phase to follow the drag through its lifecycle.
The following example animates a drop at the point of the drop:
Color.pink
.frame(width: 400, height: 400)
.dropDestination(for: String.self) { titles, session in
process(titles: titles)
}To follow a drag while its phases change, apply onDropSessionUpdated(_:).
Use localSession to recognize a drag that started inside your own app. It is nil for a drag that came from elsewhere.