---
title: initialModifierFlags
framework: uikit
role: symbol
role_heading: Instance Property
path: uikit/uibandselectioninteraction/initialmodifierflags
---

# initialModifierFlags

The pressed modifier keys at the start of the interaction.

## Declaration

```swift
var initialModifierFlags: UIKeyModifierFlags { get }
```

## Discussion

Discussion When an interaction starts, the UIBandSelectionInteraction object places the current pressed modifier keys in this property. Use the set of modifier keys to adjust the behavior of your handler. For example, you might extend an existing selection when someone presses the Shift key.

## See Also

### Getting the interaction state

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