Skip to content

Instantly share code, notes, and snippets.

@dejanskledar
Last active February 2, 2018 13:25
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 dejanskledar/2681d1e38729a1b9af176180690a15d7 to your computer and use it in GitHub Desktop.
Save dejanskledar/2681d1e38729a1b9af176180690a15d7 to your computer and use it in GitHub Desktop.
Introducing PDFKit
guard let url = URL(string:"www.your_pdf_url.com") else { return }
let pdfView = PDFView(frame: view.frame)
let pdfDocument = PDFDocument(url: url)
pdfView.document = pdfDocument
view.addSubview(pdfView)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment