Created
May 26, 2021 06:28
Star
You must be signed in to star a gist
Displaying In PDFView
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
let pdfView = PDFView() | |
pdfView.translatesAutoresizingMaskIntoConstraints = false | |
view.addSubview(pdfView) | |
let docURL = documentDirectory.appendingPathComponent("Scanned-Docs.pdf") | |
if fileManager.fileExists(atPath: docURL.path){ | |
pdfView.document = PDFDocument(url: docURL) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment