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

# backgroundColor

The view’s background color.

## Declaration

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

## Discussion

Discussion Changes to this property can be animated. The default value is nil, which results in a transparent background color.

## See Also

### Configuring a view’s visual appearance

- [isHidden](uikit/uiview/ishidden.md)
- [alpha](uikit/uiview/alpha.md)
- [isOpaque](uikit/uiview/isopaque.md)
- [tintColor](uikit/uiview/tintcolor.md)
- [tintAdjustmentMode](uikit/uiview/tintadjustmentmode-swift.property.md)
- [clipsToBounds](uikit/uiview/clipstobounds.md)
- [clearsContextBeforeDrawing](uikit/uiview/clearscontextbeforedrawing.md)
- [mask](uikit/uiview/mask.md)
- [layerClass](uikit/uiview/layerclass.md)
- [layer](uikit/uiview/layer.md)
