---
title: "appendSections(withIdentifiers:)"
framework: uikit
role: symbol
role_heading: Instance Method
path: "uikit/nsdiffabledatasourcesnapshotreference/appendsections(withidentifiers:)"
---

# appendSections(withIdentifiers:)

Adds the sections with the specified identifiers to the snapshot.

## Declaration

```swift
func appendSections(withIdentifiers sectionIdentifiers: [Any])
```

## Parameters

- `sectionIdentifiers`: An array of identifiers specifying the sections to add to the snapshot.

## See Also

### Creating a snapshot

- [appendItems(withIdentifiers:intoSectionWithIdentifier:)](uikit/nsdiffabledatasourcesnapshotreference/appenditems(withidentifiers:intosectionwithidentifier:).md)
- [appendItems(withIdentifiers:)](uikit/nsdiffabledatasourcesnapshotreference/appenditems(withidentifiers:).md)
