---
title: "rect(_:)"
framework: webkit
role: symbol
role_heading: Type Method
path: "webkit/webpage/exportedcontentconfiguration/region/rect(_:)"
---

# rect(_:)

A region that corresponds to a rectangle in the page’s coordinate system.

## Declaration

```swift
static func rect(_ rect: CGRect) -> WebPage.ExportedContentConfiguration.Region
```

## Parameters

- `rect`: The rectangle to use for the region.

## Return Value

Return Value A WebPage.ExportedContentConfiguration.Region that uses the specified rectangle.
