应该如何定义 PDFView usePageViewController withViewOptions 的选项字典:

How should be defined the options dictionary for PDFView usePageViewController withViewOptions:

应该如何为 PDFKit 中的 PDFView 定义 pageViewController 的选项字典?

I am interested particulari with this flag

UIPageViewController.NavigationOrientation.horizontal

let pdfv = PDFView.init(frame: self.view.frame)

let opt = ?????

pdfv.usePageViewController(true, withViewOptions: opt)

ViewOptions 仅包含 2 个选项:interPageSpacingspineLocationhttps://developer.apple.com/documentation/uikit/uipageviewcontroller/optionskey

示例:pdfv.usePageViewController(true, withViewOptions: ["interPageSpacing": 50])

如果要将 pageViewController 方向更改为水平,请使用此代码:

pdfv.displayDirection = .horizontal

希望这对您有所帮助。