What key/values can I specify in withViewOptions
parameter of usePageViewController
method of PDFView of iOS11, PDFKit?
Asked
Active
Viewed 1,167 times
6

Tamás Sengel
- 55,884
- 29
- 169
- 223

Yasuo Asakawa
- 123
- 5
1 Answers
2
According to the documentation found in PDFKit
, usePageViewController:withViewOptions:
passes the given options to the UIPageViewController
located in the viewer.
The
viewOptions
argument is given to theUIPageViewController
initializer, as a way to pass in page spacing, etc.
UIPageViewController
's available options are UIPageViewControllerOptionSpineLocationKey
and UIPageViewControllerOptionInterPageSpacingKey
.

Tamás Sengel
- 55,884
- 29
- 169
- 223
-
5I'd like to get pageCurl transition style, and tried the several ways like pdfView.usePageViewController(true, withViewOptions: ["style":UIPageViewControllerTransitionStyle.pageCurl]), or pdfView.usePageViewController(true, withViewOptions: ["transitionStyle":UIPageViewControllerTransitionStyle."pageCurl"]), or pdfView.usePageViewController(true, withViewOptions: ["transitionStyle":"pageCurl]), but I failed. How should I specify? – Yasuo Asakawa Oct 04 '17 at 01:02
-
@YasuoAsakawa Do you find a solution? I also want the pageCurl transition style – Basel Apr 01 '19 at 10:30
-
hello, I am running into this problem, I also want the pageCurl transition style, how can I specify please that?. – LofiMAM Jun 01 '20 at 11:57