---
title: sectionSnapshotHandlers
framework: uikit
role: symbol
role_heading: Instance Property
path: uikit/uicollectionviewdiffabledatasourcereference/sectionsnapshothandlers
---

# sectionSnapshotHandlers

The diffable data source’s handlers for expanding and collapsing items.

## Declaration

```swift
@NSCopying var sectionSnapshotHandlers: __UICollectionViewDiffableDataSourceSectionSnapshotHandlers { get set }
```

## Discussion

Discussion Provide section snapshot handlers to support the expanding or collapsing of items in your collection view. Use the snapshotForExpandingParentItemHandler handler to customize the snapshot that returns when a particular parent item is expanded.
