---
title: "init(descriptor:fetchedSnapshots:relatedSnapshots:)"
framework: swiftdata
role: symbol
role_heading: Initializer
path: "swiftdata/datastorefetchresult/init(descriptor:fetchedsnapshots:relatedsnapshots:)"
---

# init(descriptor:fetchedSnapshots:relatedSnapshots:)

## Declaration

```swift
init(descriptor: FetchDescriptor<ModelType>, fetchedSnapshots: [SnapshotType], relatedSnapshots: [PersistentIdentifier : SnapshotType] = [:])
```
