<!--
{
  "availability" : [
    "iOS: 2.0.0 -",
    "iPadOS: 2.0.0 -",
    "macCatalyst: 13.1.0 -",
    "tvOS: -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "UIKit",
  "identifier" : "/documentation/UIKit/UIControl/isSelected",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Property",
  "symbol" : {
    "kind" : "Instance Property",
    "modules" : [
      "UIKit"
    ],
    "preciseIdentifier" : "c:objc(cs)UIControl(py)selected"
  },
  "title" : "isSelected"
}
-->

# isSelected

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

```
var isSelected: Bool { get set }
```

## Discussion

Set the value of this property to <doc://com.apple.documentation/documentation/Swift/true> to select it or <doc://com.apple.documentation/documentation/Swift/false> to deselect it. Most controls don’t modify their appearance or behavior when selected, but some do. For example, the [`UISegmentedControl`](/documentation/UIKit/UISegmentedControl) class tracks whether a segment is selected and draws it differently when it is.

The default value of this property is <doc://com.apple.documentation/documentation/Swift/false> for a newly created control. You can set a control’s initial selected state in your storyboard file.

---

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)