I have a PDFView that's set to use a pageViewController:
let pdfView = PDFView()
let pdfDoc = PDFDocument(url: Bundle.main.url(forResource: "test", withExtension: "pdf")!)
pdfView.document = pdfDoc
pdfView.autoScales = true
pdfView.displayDirection = .horizontal
pdfView.usePageViewController(true, withViewOptions: [:])
Whenever I swipe to get to the next page, said next page is blurry for half a second before it's rendered sharply. That is quite annoying. Can I somehow preload the pages? I haven't found any attributes/methods in the documentation.
(Interestingly, I have the exact same problem in Preview
on MacOS
when it's in fullscreen mode [since forever, on every mac I own])
It's not reliant on pdf (file) size. The problem occurs with every pdf I tried.
Thanks for any help
pdfView?.displayMode = .singlePageContinuous
and why do you needlet page = document.page(at: 0)
when its not being used? – LongishpdfView.usePageViewController(true, withViewOptions: [:])
without doing anything else – LongishPDFKit
has this problem, though. – LongishPDFThumbnailView
on a pdf with 30> pages? – Betimes