Skip to content

Instantly share code, notes, and snippets.

@asingh33
Created May 10, 2020 04:29
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save asingh33/bcdebfdcd5767b247ca65fe32ecaf898 to your computer and use it in GitHub Desktop.
Save asingh33/bcdebfdcd5767b247ca65fe32ecaf898 to your computer and use it in GitHub Desktop.
Using PDFViewUI structure object in SwiftUI framework
struct DocumentView: View {
var document: UIDocument
var dismiss: () -> Void
var pdfView: PDFViewUI!
var body: some View {
VStack {
pdfView
Button("Done", action: dismiss)
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment