<!--
{
  "availability" : [
    "macOS: 10.4.0 - 10.15.0"
  ],
  "documentType" : "symbol",
  "framework" : "Quartz",
  "identifier" : "/documentation/Quartz/QCCompositionPickerView/setAllowsEmptySelection(_:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "Quartz"
    ],
    "preciseIdentifier" : "c:objc(cs)QCCompositionPickerView(im)setAllowsEmptySelection:"
  },
  "title" : "setAllowsEmptySelection(_:)"
}
-->

# setAllowsEmptySelection(_:)

Sets whether to allow an empty selection in the composition picker view.

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

## Parameters

`flag`

<doc://com.apple.documentation/documentation/Swift/true> to allow an empty selection. The default value is <doc://com.apple.documentation/documentation/Swift/false>.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)