---
title: allowsCollapsing
framework: appkit
role: symbol
role_heading: Instance Property
path: appkit/nscandidatelisttouchbaritem/allowscollapsing
---

# allowsCollapsing

A Boolean value that specifies whether the item can be collapsed.

## Declaration

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

## Discussion

Discussion When true, the candidate list item can be collapsed, false otherwise. The default value is true.

## See Also

### Handling collapsible behavior

- [isCollapsed](appkit/nscandidatelisttouchbaritem/iscollapsed.md)
