<!--
{
  "availability" : [
    "iOS: 15.0.0 -",
    "iPadOS: 15.0.0 -",
    "macCatalyst: 15.0.0 -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "UIKit",
  "identifier" : "/documentation/UIKit/UIBandSelectionInteraction/shouldBeginHandler",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Property",
  "symbol" : {
    "kind" : "Instance Property",
    "modules" : [
      "UIKit"
    ],
    "preciseIdentifier" : "c:objc(cs)UIBandSelectionInteraction(py)shouldBeginHandler"
  },
  "title" : "shouldBeginHandler"
}
-->

# shouldBeginHandler

The handler that determines whether to start a band selection interaction.

```
var shouldBeginHandler: ((UIBandSelectionInteraction, CGPoint) -> Bool)? { get set }
```

## Discussion

This property stores an optional handler block you use to selectively start the interaction. If you provide a handler, the [`UIBandSelectionInteraction`](/documentation/UIKit/UIBandSelectionInteraction) object calls your handler upon successful recognition of the appropriate event sequence, but before it starts the interaction. Use your handler to specify whether you want the interaction to proceed.

Your handler block returns a Boolean that indicates whether to start the interaction. Return <doc://com.apple.documentation/documentation/Swift/true> to start the interaction or <doc://com.apple.documentation/documentation/Swift/false> to ignore the interaction and return the [`UIBandSelectionInteraction`](/documentation/UIKit/UIBandSelectionInteraction) object to the [`UIBandSelectionInteraction.State.possible`](/documentation/UIKit/UIBandSelectionInteraction/State-swift.enum/possible) state. The interaction object passes the following points to your handler:

- interaction: The [`UIBandSelectionInteraction`](/documentation/UIKit/UIBandSelectionInteraction) object that’s ready to start the interaction.
- point: The starting point of the interaction, in your view’s coordinate space. You might use this value to prevent someone from starting interactions in disabled items or from specific regions of your 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)