---
title: state
framework: uikit
role: symbol
role_heading: Instance Property
path: uikit/uibandselectioninteraction/state-swift.property
---

# state

The current state of the interaction object.

## Declaration

```swift
var state: UIBandSelectionInteraction.State { get }
```

## Discussion

Discussion Use the current state to determine what actions to take in your handler. For example, when an interaction object is in the selecting state, you might highlight items in your view that are inside the current selection rectangle.

## See Also

### Getting the interaction state

- [isEnabled](uikit/uibandselectioninteraction/isenabled.md)
- [initialModifierFlags](uikit/uibandselectioninteraction/initialmodifierflags.md)
- [UIBandSelectionInteraction.State](uikit/uibandselectioninteraction/state-swift.enum.md)
