---
title: "appendSections(_:)"
framework: uikit
role: symbol
role_heading: Instance Method
path: "uikit/nsdiffabledatasourcesnapshot-swift.struct/appendsections(_:)"
---

# appendSections(_:)

Adds the sections with the specified identifiers to the snapshot.

## Declaration

```swift
mutating func appendSections(_ identifiers: [SectionIdentifierType])
```

## Parameters

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

## See Also

### Creating a snapshot

- [init()](uikit/nsdiffabledatasourcesnapshot-swift.struct/init().md)
- [appendItems(_:toSection:)](uikit/nsdiffabledatasourcesnapshot-swift.struct/appenditems(_:tosection:).md)
