<!--
{
  "availability" : [
    "macOS: 13.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "VisionKit",
  "identifier" : "/documentation/VisionKit/ImageAnalysisOverlayViewDelegate/contentsRect(for:)-34yzu",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "VisionKit"
    ],
    "preciseIdentifier" : "s:9VisionKit32ImageAnalysisOverlayViewDelegatePAAE12contentsRect3forSo6CGRectVAA0cdeF0C_tF"
  },
  "title" : "contentsRect(for:)"
}
-->

# contentsRect(for:)

A default implementation that returns a rectangle that specifies the full width and height of the view.

```
@MainActor func contentsRect(for overlayView: ImageAnalysisOverlayView) -> CGRect
```

## Parameters

`overlayView`

The overlay view that implements the Live Text interface.

## Return Value

The unit rectangle `[0.0, 0.0, 1.0, 1.0]`.

---

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)