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

# isHighlighted

A Boolean value that indicates whether the cell is highlighted.

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

## Discussion

The highlighting affects the appearance of labels, image, and background. When the highlighted state of a cell is set to <doc://com.apple.documentation/documentation/Swift/true>, labels are drawn in their highlighted text color (default is white). The default value is <doc://com.apple.documentation/documentation/Swift/false>. If you set the highlighted state to <doc://com.apple.documentation/documentation/Swift/true> through this property, the transition to the new state appearance is not animated. For animated highlighted-state transitions, see the [`setHighlighted(_:animated:)`](/documentation/UIKit/UITableViewCell/setHighlighted(_:animated:)) method.

Note that for highlighting to work properly, you must fetch the cell’s labels using the [`textLabel`](/documentation/UIKit/UITableViewCell/textLabel) and [`detailTextLabel`](/documentation/UIKit/UITableViewCell/detailTextLabel) properties and set each label’s [`highlightedTextColor`](/documentation/UIKit/UILabel/highlightedTextColor) property; for images, get the cell’s image using the [`imageView`](/documentation/UIKit/UITableViewCell/imageView) property and set the [`UIImageView`](/documentation/UIKit/UIImageView) object’s `highlightedImage` property.

---

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)