<!--
{
  "availability" : [
    "iOS: 11.0.0 -",
    "iPadOS: 11.0.0 -",
    "macCatalyst: 13.1.0 -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "UIKit",
  "identifier" : "/documentation/UIKit/UICollectionViewDragDelegate/collectionView(_:dragSessionAllowsMoveOperation:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "UIKit"
    ],
    "preciseIdentifier" : "c:objc(pl)UICollectionViewDragDelegate(im)collectionView:dragSessionAllowsMoveOperation:"
  },
  "title" : "collectionView(_:dragSessionAllowsMoveOperation:)"
}
-->

# collectionView(_:dragSessionAllowsMoveOperation:)

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

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

<doc://com.apple.documentation/documentation/Swift/false> to cancel the drag session if move is not allowed; otherwise, <doc://com.apple.documentation/documentation/Swift/true>.

## Discussion

If you don’t implement this method, the default return value is <doc://com.apple.documentation/documentation/Swift/true>.

---

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)