Contents

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.