---
title: backgroundView
framework: uikit
role: symbol
role_heading: Instance Property
path: uikit/uicollectionview/backgroundview
---

# backgroundView

The view that provides the background appearance.

## Declaration

```swift
var backgroundView: UIView? { get set }
```

## Discussion

Discussion The view (if any) in this property is positioned underneath all of the other content and sized automatically to fill the entire bounds of the collection view. The background view does not scroll with the collection view’s other content. The collection view maintains a strong reference to the background view object. This property is nil by default, which displays the background color of the collection view.
