---
title: isHighlighted
framework: uikit
role: symbol
role_heading: Instance Property
path: uikit/uicontrol/ishighlighted
---

# isHighlighted

A Boolean value indicating whether the control draws a highlight.

## Declaration

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

## Discussion

Discussion When the value of this property is true, the control draws a highlight; otherwise, the control doesn’t draw a highlight. Controls automatically set and clear this state in response to appropriate touch events. You can change the value of this property as needed to apply or remove a highlight programmatically The default value of this property is false for a newly created control. You can set a control’s initial selected state in your storyboard file.

## See Also

### Managing state

- [state](uikit/uicontrol/state-swift.property.md)
- [UIControl.State](uikit/uicontrol/state-swift.struct.md)
- [isEnabled](uikit/uicontrol/isenabled.md)
- [isSelected](uikit/uicontrol/isselected.md)
