5

I have created a pdf document and displayed it in a PDFView using PDFKit.Is there any direct way to show the pages in the document as pagination.

Faheem Rahman
  • 343
  • 2
  • 10

1 Answers1

5

YEs, they have a built in method called usePageViewController(enable:options:) you can use this on your PDFView object in the viewDidAppear and it will show you it in a UIPageViewController.

override func viewDidAppear(_animated: Bool) {
     pdfView.usePageViewController(true, withViewOptions: nil)
}
Seth Kurkowski
  • 223
  • 2
  • 11