---
title: "collectionView(_:dragSessionIsRestrictedToDraggingApplication:)"
framework: uikit
role: symbol
role_heading: Instance Method
path: "uikit/uicollectionviewdragdelegate/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.

## Declaration

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

Return Value 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

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

## See Also

### Controlling the drag session

- [collectionView(_:dragSessionAllowsMoveOperation:)](uikit/uicollectionviewdragdelegate/collectionview(_:dragsessionallowsmoveoperation:).md)
