---
title: "append(_:to:)"
framework: uikit
role: symbol
role_heading: Instance Method
path: "uikit/nsdiffabledatasourcesectionsnapshot-swift.struct/append(_:to:)"
---

# append(_:to:)

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

## Declaration

```swift
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.

## See Also

### Creating a section snapshot

- [init()](uikit/nsdiffabledatasourcesectionsnapshot-swift.struct/init().md)
- [init(_:)](uikit/nsdiffabledatasourcesectionsnapshot-swift.struct/init(_:).md)
- [snapshot(of:includingParent:)](uikit/nsdiffabledatasourcesectionsnapshot-swift.struct/snapshot(of:includingparent:).md)
