---
title: UICollectionViewDiffableDataSource.SectionSnapshotHandlers
framework: uikit
role: symbol
role_heading: Structure
path: uikit/uicollectionviewdiffabledatasource-9tqpa/sectionsnapshothandlers-swift.struct
---

# UICollectionViewDiffableDataSource.SectionSnapshotHandlers

Handlers for expanding and collapsing items.

## Declaration

```swift
@preconcurrency struct SectionSnapshotHandlers<ItemIdentifierType> where ItemIdentifierType : Hashable, ItemIdentifierType : Sendable
```

## Topics

### Expanding and collapsing items

- [shouldCollapseItem](uikit/uicollectionviewdiffabledatasource-9tqpa/sectionsnapshothandlers-swift.struct/shouldcollapseitem.md)
- [shouldExpandItem](uikit/uicollectionviewdiffabledatasource-9tqpa/sectionsnapshothandlers-swift.struct/shouldexpanditem.md)
- [willCollapseItem](uikit/uicollectionviewdiffabledatasource-9tqpa/sectionsnapshothandlers-swift.struct/willcollapseitem.md)
- [willExpandItem](uikit/uicollectionviewdiffabledatasource-9tqpa/sectionsnapshothandlers-swift.struct/willexpanditem.md)
- [snapshotForExpandingParent](uikit/uicollectionviewdiffabledatasource-9tqpa/sectionsnapshothandlers-swift.struct/snapshotforexpandingparent.md)

### Initializers

- [init()](uikit/uicollectionviewdiffabledatasource-9tqpa/sectionsnapshothandlers-swift.struct/init().md)

## See Also

### Supporting expanding and collapsing

- [sectionSnapshotHandlers](uikit/uicollectionviewdiffabledatasource-9tqpa/sectionsnapshothandlers-swift.property.md)
