set pdf data in local document and pass that url to pspdfkit

This commit is contained in:
Satindar Dhillon
2022-04-28 14:58:46 -07:00
parent 8b71188a26
commit 29c6193bda
4 changed files with 26 additions and 6 deletions

View File

@ -46,6 +46,6 @@ struct MainApp: App {
}
private func pdfViewerProvider(url: URL, viewModel: PDFViewerViewModel) -> AnyView {
AnyView(PDFViewer(pdfURL: url, viewModel: viewModel))
AnyView(PDFViewer(remoteURL: url, viewModel: viewModel))
}
}