---
title: isSelectable
framework: appkit
role: symbol
role_heading: Instance Property
path: appkit/nscollectionview/isselectable
---

# isSelectable

A Boolean value that indicates whether the user may select items in the collection view.

## Declaration

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

## Discussion

Discussion The value of this property is true when the collection view allows the user to select items, or false when it does not. You can set selections programmatically regardless of this setting. The default value of this property is false. Changing the value from true to false removes the current selection if there is one.

## See Also

### Managing the Selection

- [allowsMultipleSelection](appkit/nscollectionview/allowsmultipleselection.md)
- [allowsEmptySelection](appkit/nscollectionview/allowsemptyselection.md)
- [selectionIndexPaths](appkit/nscollectionview/selectionindexpaths.md)
- [selectAll(_:)](appkit/nscollectionview/selectall(_:).md)
- [deselectAll(_:)](appkit/nscollectionview/deselectall(_:).md)
- [selectItems(at:scrollPosition:)](appkit/nscollectionview/selectitems(at:scrollposition:).md)
- [deselectItems(at:)](appkit/nscollectionview/deselectitems(at:).md)
