---
title: shouldCollapseItemHandler
framework: uikit
role: symbol
role_heading: Instance Property
path: uikit/uicollectionviewdiffabledatasourcesectionsnapshothandlers/shouldcollapseitemhandler
---

# shouldCollapseItemHandler

The handler that determines whether a particular item is collapsable.

## Declaration

```occ
@property (nonatomic, copy, nullable) BOOL (^shouldCollapseItemHandler)(ItemType );
```

## See Also

### Expanding and collapsing items

- [shouldExpandItemHandler](uikit/uicollectionviewdiffabledatasourcesectionsnapshothandlers/shouldexpanditemhandler.md)
- [willCollapseItemHandler](uikit/uicollectionviewdiffabledatasourcesectionsnapshothandlers/willcollapseitemhandler.md)
- [willExpandItemHandler](uikit/uicollectionviewdiffabledatasourcesectionsnapshothandlers/willexpanditemhandler.md)
- [snapshotForExpandingParentItemHandler](uikit/uicollectionviewdiffabledatasourcesectionsnapshothandlers/snapshotforexpandingparentitemhandler.md)
