---
title: isEnabled
framework: uikit
role: symbol
role_heading: Instance Property
path: uikit/uicontrol/isenabled
---

# isEnabled

A Boolean value indicating whether the control is in the enabled state.

## Declaration

```swift
var isEnabled: Bool { get set }
```

## Discussion

Discussion Set the value of this property to true to enable the control or false to disable it. An enabled control is capable of responding to user interactions, whereas a disabled control ignores touch events and may draw itself differently. Setting this property to false adds the disabled flag to the control’s state bitmask; enabling the control again removes that flag. The default value of this property is true for a newly created control. You can set a control’s initial enabled state in your storyboard file.

## See Also

### Managing state

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