---
title: "contentView(for:)"
framework: visionkit
role: symbol
role_heading: Instance Method
path: "visionkit/imageanalysisoverlayviewdelegate/contentview(for:)"
---

# contentView(for:)

Provides the view that contains the image.

## Declaration

```swift
@MainActor func contentView(for overlayView: ImageAnalysisOverlayView) -> NSView?
```

## Parameters

- `overlayView`: The associated overlay view for the content view.

## Return Value

Return Value The view that contains the image.

## Discussion

Discussion The default value is nil.

## See Also

### Providing interface details

- [contentsRect(for:)](visionkit/imageanalysisoverlayviewdelegate/contentsrect(for:).md)
