---
title: backgroundColor
framework: uikit
role: symbol
role_heading: Instance Property
path: uikit/uipreviewparameters/backgroundcolor
---

# backgroundColor

The background color to display behind the preview.

## Declaration

```swift
@NSCopying var backgroundColor: UIColor! { get set }
```

## See Also

### Configuring the preview attributes

- [visiblePath](uikit/uipreviewparameters/visiblepath.md)
- [shadowPath](uikit/uipreviewparameters/shadowpath.md)
