<!--
{
  "availability" : [
    "iOS: 13.4.0 -",
    "iPadOS: 13.4.0 -",
    "macCatalyst: 13.4.0 -",
    "macOS: 10.15.0 -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "SwiftUI",
  "identifier" : "/documentation/SwiftUI/DropOperation",
  "metadataVersion" : "0.1.0",
  "role" : "Enumeration",
  "symbol" : {
    "kind" : "Enumeration",
    "modules" : [
      "SwiftUI"
    ],
    "preciseIdentifier" : "s:7SwiftUI13DropOperationO"
  },
  "title" : "DropOperation"
}
-->

# DropOperation

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

```
enum DropOperation
```

## Topics

### Getting operation types

[`case cancel`](/documentation/SwiftUI/DropOperation/cancel)

Cancel the drag operation and transfer no data.

[`case copy`](/documentation/SwiftUI/DropOperation/copy)

Copy the data to the modified view.

[`case forbidden`](/documentation/SwiftUI/DropOperation/forbidden)

The drop activity is not allowed at this time or location.

[`case move`](/documentation/SwiftUI/DropOperation/move)

Move the data represented by the drag items instead of copying it.

### Structures

[`struct Set`](/documentation/SwiftUI/DropOperation/Set)

A set of drop operations, corresponding to matching cases
in `DropOperation`.

### Enumeration Cases

[`case alias`](/documentation/SwiftUI/DropOperation/alias)

[`case delete`](/documentation/SwiftUI/DropOperation/delete)

Delete the data. The item was dragged to Trash or to another destination
that semantically represents deletion.

## Relationships

### Conforms To

[`Sendable`](/documentation/Swift/Sendable)

[`SendableMetatype`](/documentation/Swift/SendableMetatype)

[`Hashable`](/documentation/Swift/Hashable)

[`Equatable`](/documentation/Swift/Equatable)

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)