Contents

dropDestination(for:action:isTargeted:)

Defines the destination of a drag and drop operation that handles the dropped content with a closure that you specify.

Declaration

nonisolated func dropDestination<T>(for payloadType: T.Type = T.self, action: @escaping ([T], CGPoint) -> Bool, isTargeted: @escaping (Bool) -> Void = { _ in }) -> some View where T : Transferable

See Also

Input and events modifiers