<!--
{
  "availability" : [
    "macOS: 10.15.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "AppKit",
  "identifier" : "/documentation/AppKit/NSDiffableDataSourceSnapshotReference/appendSections(withIdentifiers:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "AppKit"
    ],
    "preciseIdentifier" : "c:objc(cs)NSDiffableDataSourceSnapshot(im)appendSectionsWithIdentifiers:"
  },
  "title" : "appendSections(withIdentifiers:)"
}
-->

# appendSections(withIdentifiers:)

Adds the sections with the specified identifiers to the snapshot.

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

## Parameters

`sectionIdentifiers`

An array of identifiers specifying the sections to add to the snapshot.

## Discussion

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)