---
title: "appendSections(_:)"
framework: appkit
role: symbol
role_heading: Instance Method
path: "appkit/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()](appkit/nsdiffabledatasourcesnapshot-swift.struct/init().md)
- [appendItems(_:toSection:)](appkit/nsdiffabledatasourcesnapshot-swift.struct/appenditems(_:tosection:).md)
