有什么方法可以通过向左滑动以使用 PdfKit 移动到下一页来阅读 pdf 文件

Is there any way to read pdf file by swiping left to move to next page using PdfKit

I want to read document from right to left but in this scenario its scrolling from left to right 下面是我用来读取文件但不能从左侧往前阅读的代码,例如从最后一页往前看书

 pdfView.displayMode = .singlePageContinuous
        pdfView.usePageViewController(true, withViewOptions: nil)
        pdfView.pageBreakMargins = UIEdgeInsets(top: 0, left: 0, bottom: 0, right: 0)
        pdfView.displayDirection = .horizontal
        pdfView.displaysAsBook = true
        pdfView.translatesAutoresizingMaskIntoConstraints = false
        pdfView.setValue(true, forKey: "forcesTopAlignment")
        pdfView.autoresizingMask = [.flexibleHeight,.flexibleWidth,.flexibleTopMargin,.flexibleBottomMargin]
        
        
        pdfView.displayBox = .bleedBox
        
        let temp = JuzzPdfViewController.juzzIndex
        
        let resourse = "parah\(temp)"

        ParahNo = JuzzPdfViewController.juzzIndex
        let fileURL = Bundle.main.url(forResource: resourse, withExtension: "pdf")
        
       resumeQuranURl = fileURL
        
        
        pdfView.document = PDFDocument(url: fileURL!)

尝试以下操作:

pdfView.displaysRTL = true
pdfView.usePageViewController(true)

如果不使用页面视图控制器,displaysRTL 似乎无法正常工作。