Monday, 9 September 2019

Disable zooming on PDFView (iOS)

How can I disable zooming on PDFView?

I've already tried the solution here, but it didn't work. I can still zoom in and zoom out.

Here's my PDFView:

let pdfView: PDFView = {
    let pdfView = PDFVIew()
    let urlPath = Bundle.main.path(forResource: "PdfFile", ofType: "pdf")
    let url = URL(fileURLWithPath: urlPath!)
    pdfView.document = PDFDocument(url: url)
    pdfView.autoScales = true
    pdfView.displayMode = .singlePageContinuous
    pdfView.displayDirection = .vertical
    pdfView.pageShadowsEnabled = false
}()



from Disable zooming on PDFView (iOS)

No comments:

Post a Comment