<!--
{
  "availability" : [
    "iOS: 14.0.0 -",
    "iPadOS: 14.0.0 -",
    "macCatalyst: -",
    "tvOS: 14.0.0 -",
    "visionOS: -"
  ],
  "documentType" : "symbol",
  "framework" : "UIKit",
  "identifier" : "/documentation/UIKit/NSDiffableDataSourceSectionSnapshot-swift.struct/append(_:to:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "UIKit"
    ],
    "preciseIdentifier" : "s:5UIKit35NSDiffableDataSourceSectionSnapshotV6append_2toySayxG_xSgtF"
  },
  "title" : "append(_:to:)"
}
-->

# append(_:to:)

Adds the specified items as child items of the specified parent item in the section snapshot.

```
mutating func append(_ items: [ItemIdentifierType], to parent: ItemIdentifierType? = nil)
```

## Parameters

`items`

The identifiers of the items to append to the parent item in the section snapshot.

`parent`

The parent item to append the items to. If you don’t specify a parent, the section snapshot appends the items to its root level.

---

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)