I have vertical scrolling pdfView:
var pdfView = PDFView()
pdfView.displayDirection = .vertical
pdfView.usePageViewController(false)
pdfView.pageBreakMargins = UIEdgeInsets(top: 0, left: 0, bottom: 0, right: 0)
pdfView.autoScales = true
pdfView.backgroundColor = .black
I can scroll and zoom pdf file.
But how can I scroll pdfView programmatically?
pdfView.go(to: someCGRect, on: somePage)
I already know go(to:, on:)
, but it just jumps to that point and page without scrolling.
go(to: PDFPage)
Scrolls, but just specified page.
reference: https://developer.apple.com/documentation/pdfkit/pdfview/navigation