---
title: willCollapseItemHandler
framework: uikit
role: symbol
role_heading: Instance Property
path: uikit/uicollectionviewdiffabledatasourcesectionsnapshothandlers/willcollapseitemhandler
---

# willCollapseItemHandler

The handler that prepares the diffable data source for collapsing an item.

## Declaration

```occ
@property (nonatomic, copy, nullable) void (^willCollapseItemHandler)(ItemType );
```

## See Also

### Expanding and collapsing items

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