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

# dragInteraction(_:sessionIsRestrictedToDraggingApplication:)

Asks the delegate whether the system should restrict the drag session to the app that started the session.

## Declaration

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

## Parameters

- `interaction`: The interaction that called this method.
- `session`: The drag session to restrict or not restrict.

## Return Value

Return Value true if you want to restrict the drag session to the app that started it; otherwise false, which is the default if you don’t provide this method.

## Discussion

Discussion If you return true and the user attempts to drop the drag items onto another app, the system cancels the session. note: The system calls this method only on devices that support dragging across apps.

## See Also

### Restricting the drag behavior

- [dragInteraction(_:sessionAllowsMoveOperation:)](uikit/uidraginteractiondelegate/draginteraction(_:sessionallowsmoveoperation:).md)
