Skip to content

Instantly share code, notes, and snippets.

@asingh33
Last active May 10, 2020 03:51
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/bb2bc03dafa1dd53fe051eac7e9ea41a to your computer and use it in GitHub Desktop.
Save asingh33/bb2bc03dafa1dd53fe051eac7e9ea41a to your computer and use it in GitHub Desktop.
To load a PDF document using PDFKit in Swift and SwiftUI
override func load(fromContents contents: Any, ofType typeName: String?) throws {
// Load your document from contents
print(self.fileURL)
self.pdfDoc = PDFDocument(url: self.fileURL)
}
@asingh33
Copy link
Author

Gist for To load a PDF document using PDFKit in Swift and SwiftUI

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment