A Boolean value indicating whether the collection view may have no selected items.
SDK
- macOS 10.11+
Framework
- App
Kit
Declaration
var allowsEmptySelection: Bool { get set }
Discussion
The default value of this property is true
, which allows the collection view to have no selected items. Setting this property to false
causes the collection view to always leave at least one item selected.