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

# state

The state of the control, specified as a bit mask value.

## Declaration

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

## Discussion

Discussion The value of this property is a bitmask of the constants in the UIControl.State type. A control can be in more than one state at a time. For example, it can be focused and highlighted at the same time. You can also get the values for individual states using the properties of this class.

## See Also

### Managing state

- [UIControl.State](uikit/uicontrol/state-swift.struct.md)
- [isEnabled](uikit/uicontrol/isenabled.md)
- [isSelected](uikit/uicontrol/isselected.md)
- [isHighlighted](uikit/uicontrol/ishighlighted.md)
