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

# isHighlighted

A Boolean value that determines whether the label draws its text with a highlight.

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

## Discussion

Setting this property causes the label to redraw with the appropriate highlight state. A subclass implementing a text button might set this property to <doc://com.apple.documentation/documentation/Swift/true> when the user presses the button and set it to <doc://com.apple.documentation/documentation/Swift/false> at other times. In order for the label to draw the highlight, the [`highlightedTextColor`](/documentation/UIKit/UILabel/highlightedTextColor) property must contain a non-`nil` value.

The default value of this property is <doc://com.apple.documentation/documentation/Swift/false>.

---

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)