---
title: rect
framework: webkit
role: symbol
role_heading: Instance Property
path: webkit/wkpdfconfiguration/rect-2a0vp
---

# rect

The portion of your web view to capture, specified as a rectangle in the view’s coordinate system.

## Declaration

```swift
@MainActor @preconcurrency var rect: CGRect? { get set }
```

## Discussion

Discussion The default value of this property is CGRectNull, which captures everything in the view’s bounds rectangle. If you specify a custom rectangle, it must lie within the bounds rectangle of the WKWebView object.
