---
title: contentView
framework: uikit
role: symbol
role_heading: Instance Property
path: uikit/uicollectionviewcell/contentview
---

# contentView

The main view that you add your cell’s custom content to.

## Declaration

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

## Discussion

Discussion When configuring a cell, you add any custom views representing your cell’s content to this view. The cell object places the content in this view in front of any background views.

## See Also

### Managing the content

- [contentConfiguration](uikit/uicollectionviewcell/contentconfiguration-13e7k.md)
- [automaticallyUpdatesContentConfiguration](uikit/uicollectionviewcell/automaticallyupdatescontentconfiguration.md)
