---
title: "dragInteraction(_:sessionAllowsMoveOperation:)"
framework: uikit
role: symbol
role_heading: Instance Method
path: "uikit/uidraginteractiondelegate/draginteraction(_:sessionallowsmoveoperation:)"
---

# dragInteraction(_:sessionAllowsMoveOperation:)

Asks the delegate whether the session allows the move operation.

## Declaration

```swift
optional func dragInteraction(_ interaction: UIDragInteraction, sessionAllowsMoveOperation session: any UIDragSession) -> Bool
```

## Parameters

- `interaction`: The interaction that called this method.
- `session`: The drag session that should, or should not, allow the move operation.

## Return Value

Return Value true if the session allows moving drag items to the destination view; otherwise false. The default is true if you don’t provide this method.

## Discussion

Discussion The UIDropOperation.move operation only applies to drop activities within the same app. Drag items dropped onto another app are always copied.

## See Also

### Restricting the drag behavior

- [dragInteraction(_:sessionIsRestrictedToDraggingApplication:)](uikit/uidraginteractiondelegate/draginteraction(_:sessionisrestrictedtodraggingapplication:).md)
