---
title: "contentsRect(for:)"
framework: visionkit
role: symbol
role_heading: Instance Method
path: "visionkit/imageanalysisoverlayviewdelegate/contentsrect(for:)-34yzu"
---

# contentsRect(for:)

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

## Declaration

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

## Parameters

- `overlayView`: The overlay view that implements the Live Text interface.

## Mentioned in

Enabling Live Text interactions with images

## Return Value

Return Value The unit rectangle [0.0, 0.0, 1.0, 1.0].
