<!--
{
  "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(_:dragSessionIsRestrictedToDraggingApplication:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "UIKit"
    ],
    "preciseIdentifier" : "c:objc(pl)UICollectionViewDragDelegate(im)collectionView:dragSessionIsRestrictedToDraggingApplication:"
  },
  "title" : "collectionView(_:dragSessionIsRestrictedToDraggingApplication:)"
}
-->

# collectionView(_:dragSessionIsRestrictedToDraggingApplication:)

Returns a Boolean value that determines whether the source app and destination app must be the same for a drag session.

```
optional func collectionView(_ collectionView: UICollectionView, dragSessionIsRestrictedToDraggingApplication 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/true> when the source app and destination app should be the same — that is, the user is not allowed to drop the item on another app.

## Discussion

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

---

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)