---
title: "snapshot(of:includingParent:)"
framework: uikit
role: symbol
role_heading: Instance Method
path: "uikit/nsdiffabledatasourcesectionsnapshot-swift.struct/snapshot(of:includingparent:)"
---

# snapshot(of:includingParent:)

Creates a section snapshot that contains the child items of the specified parent item, optionally including the parent item.

## Declaration

```swift
func snapshot(of parent: ItemIdentifierType, includingParent: Bool = false) -> NSDiffableDataSourceSectionSnapshot<ItemIdentifierType>
```

## See Also

### Creating a section snapshot

- [init()](uikit/nsdiffabledatasourcesectionsnapshot-swift.struct/init().md)
- [init(_:)](uikit/nsdiffabledatasourcesectionsnapshot-swift.struct/init(_:).md)
- [append(_:to:)](uikit/nsdiffabledatasourcesectionsnapshot-swift.struct/append(_:to:).md)
