<!--
{
  "availability" : [
    "iOS: -",
    "iPadOS: -",
    "macCatalyst: -",
    "tvOS: -",
    "visionOS: -"
  ],
  "documentType" : "symbol",
  "framework" : "UIKit",
  "identifier" : "/documentation/UIKit/UIControl/State-swift.struct",
  "metadataVersion" : "0.1.0",
  "role" : "Structure",
  "symbol" : {
    "kind" : "Structure",
    "modules" : [
      "UIKit"
    ],
    "preciseIdentifier" : "c:@E@UIControlState"
  },
  "title" : "UIControl.State"
}
-->

# UIControl.State

Constants describing the state of a control.

```
struct State
```

## Overview

A control can have more than one state at a time. Controls can have different configurations according to their state. For example, a [`UIButton`](/documentation/UIKit/UIButton) object can display one image when it’s in its normal state and a different image when it’s highlighted.

## Topics

### Constants

[`UIControlStateNormal`](/documentation/UIKit/UIControl/State-swift.struct/normal)

The normal, or default, state of a control where the control is enabled but neither selected nor highlighted.

[`UIControlStateHighlighted`](/documentation/UIKit/UIControl/State-swift.struct/highlighted)

The highlighted state of a control.

[`UIControlStateDisabled`](/documentation/UIKit/UIControl/State-swift.struct/disabled)

The disabled state of a control.

[`UIControlStateSelected`](/documentation/UIKit/UIControl/State-swift.struct/selected)

The selected state of a control.

[`UIControlStateFocused`](/documentation/UIKit/UIControl/State-swift.struct/focused)

The focused state of a control.

[`UIControlStateApplication`](/documentation/UIKit/UIControl/State-swift.struct/application)

Additional control-state flags available for app use.

[`UIControlStateReserved`](/documentation/UIKit/UIControl/State-swift.struct/reserved)

Control-state flags reserved for internal framework use.

### Initializers

[`init(rawValue:)`](/documentation/UIKit/UIControl/State-swift.struct/init(rawValue:))

Creates a control state with the specified raw value.

## Relationships

### Conforms To

[`SetAlgebra`](/documentation/Swift/SetAlgebra)

[`Equatable`](/documentation/Swift/Equatable)

[`ExpressibleByArrayLiteral`](/documentation/Swift/ExpressibleByArrayLiteral)

[`BitwiseCopyable`](/documentation/Swift/BitwiseCopyable)

[`RawRepresentable`](/documentation/Swift/RawRepresentable)

[`Sendable`](/documentation/Swift/Sendable)

[`SendableMetatype`](/documentation/Swift/SendableMetatype)

[`OptionSet`](/documentation/Swift/OptionSet)

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)