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

## Declaration

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

Return Value true to allow the user to select multiple rows using a two-finger pan gesture; otherwise, false to disable the behavior. The default value is false.

## Discussion

Discussion When the system recognizes a two-finger pan gesture, it calls this method before it sets isEditing to true. If you return 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 property to true when you configure the table view.

## See Also

### Responding to row selections

- [Handling row selection in a table view](uikit/handling-row-selection-in-a-table-view.md)
- [Selecting multiple items with a two-finger pan gesture](uikit/selecting-multiple-items-with-a-two-finger-pan-gesture.md)
- [tableView(_:willSelectRowAt:)](uikit/uitableviewdelegate/tableview(_:willselectrowat:).md)
- [tableView(_:didSelectRowAt:)](uikit/uitableviewdelegate/tableview(_:didselectrowat:).md)
- [tableView(_:willDeselectRowAt:)](uikit/uitableviewdelegate/tableview(_:willdeselectrowat:).md)
- [tableView(_:didDeselectRowAt:)](uikit/uitableviewdelegate/tableview(_:diddeselectrowat:).md)
- [tableView(_:didBeginMultipleSelectionInteractionAt:)](uikit/uitableviewdelegate/tableview(_:didbeginmultipleselectioninteractionat:).md)
- [tableViewDidEndMultipleSelectionInteraction(_:)](uikit/uitableviewdelegate/tableviewdidendmultipleselectioninteraction(_:).md)
