onDropSessionUpdated(_:)
Specifies an action to perform on each update of an ongoing drop operation activated by dropDestination(_:) or other drop modifiers.
Declaration
nonisolated func onDropSessionUpdated(_ onUpdate: @escaping (DropSession) -> Void) -> some View
Discussion
The onUpdate closure is called when the closest drop session in the child view hierarchy becomes active.
See Also
Drag and drop
dragConfiguration(_:)dragContainer(for:in:_:)dragContainer(for:itemID:in:_:)dragContainerSelection(_:containerNamespace:)dragPreviewsFormation(_:)draggable(_:)draggable(_:preview:)draggable(_:containerNamespace:_:)draggable(_:id:containerNamespace:_:)draggable(_:id:item:containerNamespace:)draggable(_:item:containerNamespace:)draggable(containerItemID:containerNamespace:)dropConfiguration(_:)dropDestination(for:isEnabled:action:)dropPreviewsFormation(_:)