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

# isSelected

The selection state of the cell.

## Declaration

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

## Discussion

Discussion This property manages the selection state of the cell only. The default value of this property is false, which indicates an unselected state. You typically don’t set the value of this property directly. Changing the value of this property programmatically doesn’t change the appearance of the cell. The preferred way to select the cell and highlight it’s to use the selection methods of the collection view object.

## See Also

### Managing the state

- [configurationState](uikit/uicollectionviewcell/configurationstate-4u37h.md)
- [setNeedsUpdateConfiguration()](uikit/uicollectionviewcell/setneedsupdateconfiguration().md)
- [updateConfiguration(using:)](uikit/uicollectionviewcell/updateconfiguration(using:).md)
- [configurationUpdateHandler](uikit/uicollectionviewcell/configurationupdatehandler-7rqbu.md)
- [UICollectionViewCell.ConfigurationUpdateHandler](uikit/uicollectionviewcell/configurationupdatehandler-swift.typealias.md)
- [isHighlighted](uikit/uicollectionviewcell/ishighlighted.md)
