---
title: contentConfiguration
framework: uikit
role: symbol
role_heading: Instance Property
path: uikit/uicollectionviewcell/contentconfiguration-1lcqh
---

# contentConfiguration

The current content configuration of the cell.

## Declaration

```occ
@property (nonatomic, copy, nullable) id<UIContentConfiguration> contentConfiguration;
```

## Discussion

Discussion Using a content configuration, you can set the cell’s content and styling for a variety of different cell states. Setting a content configuration replaces the existing contentView of the cell with a new content view instance from the configuration, or directly applies the configuration to the existing content view if the configuration is compatible with the existing content view type. The default value is nil. After you set a content configuration to this property, setting this property back to nil replaces the current content view with a new, empty content view.

## See Also

### Managing the content

- [automaticallyUpdatesContentConfiguration](uikit/uicollectionviewcell/automaticallyupdatescontentconfiguration.md)
- [contentView](uikit/uicollectionviewcell/contentview.md)
