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

# collectionView(_:shouldBeginMultipleSelectionInteractionAt:)

Asks the delegate whether the user can select multiple items using a two-finger pan gesture in a collection view.

```
optional func collectionView(_ collectionView: UICollectionView, shouldBeginMultipleSelectionInteractionAt indexPath: IndexPath) -> Bool
```

## Parameters

`collectionView`

The collection view calling this method.

`indexPath`

The index path of the item 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 items 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/UICollectionView/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 items using a two-finger pan gesture.

Users can select multiple items using the two-finger pan gesture on collection views that scroll either horizontally or vertically, but not both. Collection views that scroll in both directions won’t recognize the gesture or call this method.

If you don’t implement this method, the system uses the value of [`allowsMultipleSelectionDuringEditing`](/documentation/UIKit/UICollectionView/allowsMultipleSelectionDuringEditing) to determine whether a user can select multiple items using a pan gesture.

---

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)