---
title: "read(from:progress:)"
framework: swiftui
role: symbol
role_heading: Instance Method
path: "swiftui/documentreader/read(from:progress:)"
---

# read(from:progress:)

Reads the document from disk.

## Declaration

```swift
nonisolated func read(from source: sending Self.Source, progress: consuming Subprogress) async throws -> sending Self.Snapshot
```

## Parameters

- `source`: The source to read from.
- `progress`: The subprogress to report reading progress to SwiftUI.

## See Also

### Reading a document

- [Snapshot](swiftui/documentreader/snapshot.md)
- [Source](swiftui/documentreader/source.md)
