---
title: "setAllowsEmptySelection(_:)"
framework: quartz
role: symbol
role_heading: Instance Method
path: "quartz/ikimagebrowserview/setallowsemptyselection(_:)"
---

# setAllowsEmptySelection(_:)

Controls whether an empty selection is allowed.

## Declaration

```swift
func setAllowsEmptySelection(_ flag: Bool)
```

## Parameters

- `flag`: A BOOL value that specifies whether to allow an empty selection.

## See Also

### Reordering and Groups Items

- [selectionIndexes()](quartz/ikimagebrowserview/selectionindexes().md)
- [setSelectionIndexes(_:byExtendingSelection:)](quartz/ikimagebrowserview/setselectionindexes(_:byextendingselection:).md)
- [setAllowsMultipleSelection(_:)](quartz/ikimagebrowserview/setallowsmultipleselection(_:).md)
- [allowsMultipleSelection()](quartz/ikimagebrowserview/allowsmultipleselection().md)
- [allowsEmptySelection()](quartz/ikimagebrowserview/allowsemptyselection().md)
- [setAllowsReordering(_:)](quartz/ikimagebrowserview/setallowsreordering(_:).md)
- [allowsReordering()](quartz/ikimagebrowserview/allowsreordering().md)
- [setAnimates(_:)](quartz/ikimagebrowserview/setanimates(_:).md)
- [animates()](quartz/ikimagebrowserview/animates().md)
- [expandGroup(at:)](quartz/ikimagebrowserview/expandgroup(at:).md)
- [collapseGroup(at:)](quartz/ikimagebrowserview/collapsegroup(at:).md)
- [isGroupExpanded(at:)](quartz/ikimagebrowserview/isgroupexpanded(at:).md)
