<!--
{
  "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/UITableViewCell/isSelected",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Property",
  "symbol" : {
    "kind" : "Instance Property",
    "modules" : [
      "UIKit"
    ],
    "preciseIdentifier" : "c:objc(cs)UITableViewCell(py)selected"
  },
  "title" : "isSelected"
}
-->

# isSelected

A Boolean value that indicates whether the cell is selected.

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

## Discussion

The selection affects the appearance of labels, image, and background. When the selected state of a cell is set to <doc://com.apple.documentation/documentation/Swift/true>, it draws the background for selected cells with its title in white. The default value is <doc://com.apple.documentation/documentation/Swift/false>. If you set the selection state to <doc://com.apple.documentation/documentation/Swift/true> through this property, the transition to the new state appearance is not animated. For animated selected-state transitions, see the [`setSelected(_:animated:)`](/documentation/UIKit/UITableViewCell/setSelected(_:animated:)) method.

---

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)