---
title: "init(_:)"
framework: uikit
role: symbol
role_heading: Initializer
path: "uikit/uibandselectioninteraction/init(_:)"
---

# init(_:)

Creates a new band selection interaction object with the provided handler code.

## Declaration

```swift
init(_ selectionHandler: @escaping (UIBandSelectionInteraction) -> Void)
```

## Parameters

- `selectionHandler`: The handler block you use to process interaction-related events. The handler block has no return value and takes the following parameter:

## Return Value

Return Value An initialized band selection interaction object. Add the returned object to a view to begin detecting interactions.
