---
title: "collectionView(_:dragSessionAllowsMoveOperation:)"
framework: uikit
role: symbol
role_heading: Instance Method
path: "uikit/uicollectionviewdragdelegate/collectionview(_:dragsessionallowsmoveoperation:)"
---

# collectionView(_:dragSessionAllowsMoveOperation:)

Returns a Boolean value that determines whether a move operation is allowed for a drag session.

## Declaration

```swift
optional func collectionView(_ collectionView: UICollectionView, dragSessionAllowsMoveOperation session: any UIDragSession) -> Bool
```

## Parameters

- `collectionView`: The collection view from which the drag operation originated.
- `session`: The drag session that’s active.

## Return Value

Return Value false to cancel the drag session if move is not allowed; otherwise, true.

## Discussion

Discussion If you don’t implement this method, the default return value is true.

## See Also

### Controlling the drag session

- [collectionView(_:dragSessionIsRestrictedToDraggingApplication:)](uikit/uicollectionviewdragdelegate/collectionview(_:dragsessionisrestrictedtodraggingapplication:).md)
