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

# tableView(_:shouldBeginMultipleSelectionInteractionAt:)

Asks the delegate whether the user can use a two-finger pan gesture to select multiple items in a table view.

```
optional func tableView(_ tableView: UITableView, shouldBeginMultipleSelectionInteractionAt indexPath: IndexPath) -> Bool
```

## Parameters

`tableView`

The table view calling this method.

`indexPath`

The index path of the row that the user touched to start the two-finger pan gesture.

## Return Value

<doc://com.apple.documentation/documentation/Swift/true> to allow the user to select multiple rows using a two-finger pan gesture; otherwise, <doc://com.apple.documentation/documentation/Swift/false> to disable the behavior. The default value is <doc://com.apple.documentation/documentation/Swift/false>.

## Discussion

When the system recognizes a two-finger pan gesture, it calls this method before it sets [`isEditing`](/documentation/UIKit/UITableView/isEditing) to <doc://com.apple.documentation/documentation/Swift/true>. If you return <doc://com.apple.documentation/documentation/Swift/true> from this method, the user can select multiple rows using a two-finger pan gesture.

In macOS, the system calls this method when a user attempts to select multiple rows by holding a modifier key and clicking additional rows to select them.

To support multiple selection using the two-finger pan gesture (in iOS) or modifier keys (in macOS), set the [`allowsMultipleSelectionDuringEditing`](/documentation/UIKit/UITableView/allowsMultipleSelectionDuringEditing) property to <doc://com.apple.documentation/documentation/Swift/true> when you configure the table view.

---

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)