---
title: "dropDestination(for:action:isTargeted:)"
framework: swiftui
role: symbol
role_heading: Instance Method
path: "swiftui/view/dropdestination(for:action:istargeted:)"
---

# 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

```swift
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

- [onChange(of:perform:)](swiftui/view/onchange(of:perform:).md)
- [onTapGesture(count:coordinateSpace:perform:)](swiftui/view/ontapgesture(count:coordinatespace:perform:)-36x9h.md)
- [onLongPressGesture(minimumDuration:maximumDistance:pressing:perform:)](swiftui/view/onlongpressgesture(minimumduration:maximumdistance:pressing:perform:).md)
- [onLongPressGesture(minimumDuration:pressing:perform:)](swiftui/view/onlongpressgesture(minimumduration:pressing:perform:).md)
- [onPasteCommand(of:perform:)](swiftui/view/onpastecommand(of:perform:)-4f78f.md)
- [onPasteCommand(of:validator:perform:)](swiftui/view/onpastecommand(of:validator:perform:)-964k1.md)
- [onDrop(of:delegate:)](swiftui/view/ondrop(of:delegate:)-2vr9o.md)
- [onDrop(of:isTargeted:perform:)](swiftui/view/ondrop(of:istargeted:perform:).md)
- [focusable(_:onFocusChange:)](swiftui/view/focusable(_:onfocuschange:).md)
- [onContinuousHover(coordinateSpace:perform:)](swiftui/view/oncontinuoushover(coordinatespace:perform:)-8gyrl.md)
