init(_:)
Creates a new band selection interaction object with the provided handler code.
Declaration
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:
- interaction
The band selection interaction object that reported the event. Use the State Swift.property property of this object to determine what actions to take. For example, when the value of the property is Selecting, get the current selection rectangle and intersect it with the items in your view.
Return Value
An initialized band selection interaction object. Add the returned object to a view to begin detecting interactions.