<!--
{
  "availability" : [
    "iOS: 26.0.0 -",
    "iPadOS: 26.0.0 -",
    "macCatalyst: -",
    "macOS: 26.0.0 -",
    "visionOS: 26.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "WebKit",
  "identifier" : "/documentation/WebKit/WebPage/ExportedContentConfiguration/Region/rect(_:)",
  "metadataVersion" : "0.1.0",
  "role" : "Type Method",
  "symbol" : {
    "kind" : "Type Method",
    "modules" : [
      "WebKit"
    ],
    "preciseIdentifier" : "s:6WebKit0A4PageC28ExportedContentConfigurationV6RegionV4rectyAGSo6CGRectVFZ"
  },
  "title" : "rect(_:)"
}
-->

# rect(_:)

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

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

## Parameters

`rect`

The rectangle to use for the region.

## Return Value

A [`WebPage.ExportedContentConfiguration.Region`](/documentation/WebKit/WebPage/ExportedContentConfiguration/Region) that uses the specified rectangle.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)