---
title: "usePageViewController(_:withViewOptions:)"
framework: pdfkit
role: symbol
role_heading: Instance Method
path: "pdfkit/pdfview/usepageviewcontroller(_:withviewoptions:)"
---

# usePageViewController(_:withViewOptions:)

Changes the scroll view to use a UIPageViewController to layout and navigate pages.

## Declaration

```swift
func usePageViewController(_ enable: Bool, withViewOptions viewOptions: [AnyHashable : Any]? = nil)
```

## See Also

### Displaying as Book

- [displaysAsBook](pdfkit/pdfview/displaysasbook.md)
- [isUsingPageViewController](pdfkit/pdfview/isusingpageviewcontroller.md)
