---
title: DropOperation
framework: swiftui
role: symbol
role_heading: Enumeration
path: swiftui/dropoperation
---

# DropOperation

Operation types that determine how a drag and drop session resolves when the user drops a drag item.

## Declaration

```swift
enum DropOperation
```

## Topics

### Getting operation types

- [DropOperation.cancel](swiftui/dropoperation/cancel.md)
- [DropOperation.copy](swiftui/dropoperation/copy.md)
- [DropOperation.forbidden](swiftui/dropoperation/forbidden.md)
- [DropOperation.move](swiftui/dropoperation/move.md)

### Structures

- [DropOperation.Set](swiftui/dropoperation/set.md)

### Enumeration Cases

- [DropOperation.alias](swiftui/dropoperation/alias.md)
- [DropOperation.delete](swiftui/dropoperation/delete.md)

## Relationships

### Conforms To

- [Equatable](swift/equatable.md)
- [Escapable](swift/escapable.md)
- [Hashable](swift/hashable.md)
- [Sendable](swift/sendable.md)
- [SendableMetatype](swift/sendablemetatype.md)

## See Also

### Moving items using item providers

- [itemProvider(_:)](swiftui/view/itemprovider(_:).md)
- [onDrag(_:preview:)](swiftui/view/ondrag(_:preview:).md)
- [onDrag(_:)](swiftui/view/ondrag(_:).md)
- [onDrop(of:isTargeted:perform:)](swiftui/view/ondrop(of:istargeted:perform:).md)
- [onDrop(of:delegate:)](swiftui/view/ondrop(of:delegate:).md)
- [DropDelegate](swiftui/dropdelegate.md)
- [DropProposal](swiftui/dropproposal.md)
- [DropInfo](swiftui/dropinfo.md)
