---
title: isSelected
framework: uikit
role: symbol
role_heading: Instance Property
path: uikit/uitableviewcell/isselected
---

# isSelected

A Boolean value that indicates whether the cell is selected.

## Declaration

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

## Discussion

Discussion The selection affects the appearance of labels, image, and background. When the selected state of a cell is set to true, it draws the background for selected cells with its title in white. The default value is false. If you set the selection state to true through this property, the transition to the new state appearance is not animated. For animated selected-state transitions, see the setSelected(_:animated:) method.

## See Also

### Managing cell selection and highlighting

- [selectionStyle](uikit/uitableviewcell/selectionstyle-swift.property.md)
- [UITableViewCell.SelectionStyle](uikit/uitableviewcell/selectionstyle-swift.enum.md)
- [setSelected(_:animated:)](uikit/uitableviewcell/setselected(_:animated:).md)
- [isHighlighted](uikit/uitableviewcell/ishighlighted.md)
- [setHighlighted(_:animated:)](uikit/uitableviewcell/sethighlighted(_:animated:).md)
