Page turning animation in ios pdfkit singlepage displaymode

785 views Asked by At

I've recently implemented a pdfviewer using the ios PDFKit library, and am using singlepage mode rather than continuous mode. Following the solution to another question I've implemented the page turning with a swipe handler however this just loads the next/prev page.

Is it possible to animate moving between the pages in singlePage mode?

1

There are 1 answers

1
shochu_king On BEST ANSWER

enabling usePageController enabled UI page view controller scroll style scrolling

pdfView!.usePageViewController(true, withViewOptions: nil)

from here: https://developer.apple.com/documentation/pdfkit/pdfview/2877501-usepageviewcontroller