---
title: isSelected
framework: appkit
role: symbol
role_heading: Instance Property
path: appkit/nscollectionviewitem/isselected
---

# isSelected

A Boolean indicating whether the item is currently selected.

## Declaration

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

## Discussion

Discussion The value of this property is true when the item is selected or false when it is not.

## See Also

### Managing the Selection and Highlight States

- [highlightState](appkit/nscollectionviewitem/highlightstate-swift.property.md)
