---
title: documentView
framework: pdfkit
role: symbol
role_heading: Instance Property
path: pdfkit/pdfview/documentview
---

# documentView

The innermost view used by PDFView or by your PDFView subclass.

## Declaration

```swift
var documentView: UIView? { get }
```

```swift
var documentView: NSView? { get }
```

## Discussion

Discussion The innermost view is the one displaying the visible document pages. This method is useful when converting coordinates from one view to another.

## See Also

### Specializing the View

- [layoutDocumentView()](pdfkit/pdfview/layoutdocumentview().md)
- [Draw Operations](pdfkit/draw-operations.md)
