---
title: overlayContentView
framework: uikit
role: symbol
role_heading: Instance Property
path: uikit/uiimageview/overlaycontentview
---

# overlayContentView

A view for hosting layered content on top of the image view.

## Declaration

```swift
var overlayContentView: UIView { get }
```

## Discussion

Discussion Use this view to host content that you want layered on top of the image view. This view is managed by the image view itself and is automatically sized to fill the image view’s frame rectangle. Add your subviews and use layout constraints to position them within the view. When the adjustsImageWhenAncestorFocused property is true, the overlay view receives the same floating effects as the image view when it’s focused. The view in this property clips its subviews to its bounds rectangle by default, but you can change that behavior using the clipsToBounds property.
