use progressview for pdf loading view

This commit is contained in:
Satindar Dhillon
2022-05-23 09:20:52 -07:00
parent b46576e937
commit 1a12e545f5

View File

@ -136,7 +136,7 @@ import Utils
ShareSheet(activityItems: [$0.url])
}
} else {
Text("Loading...")
ProgressView()
.task {
let document = HighlightedDocument(url: pdfURL, viewModel: viewModel)
pdfStateObject.document = document