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

# tableView(_:dragSessionIsRestrictedToDraggingApplication:)

Returns a Boolean value indicating whether the dragged content must be dropped in the same app.

```
optional func tableView(_ tableView: UITableView, dragSessionIsRestrictedToDraggingApplication session: any UIDragSession) -> Bool
```

## Parameters

`tableView`

The table view from which the drag operation originated.

`session`

The drag session object containing information about the drag operation.

## Return Value

<doc://com.apple.documentation/documentation/Swift/true> if the dragged content must be dropped in the same app that originated the drag, or <doc://com.apple.documentation/documentation/Swift/false> if the content may be dragged to other apps.

## Discussion

Implement this method when you want to allow the user to drag content within your app, but prevent them from dragging that same content to other apps. If you don’t implement this method, the table view behaves as if the method returned <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)