---
title: backgroundColor
framework: pdfkit
role: symbol
role_heading: Instance Property
path: pdfkit/pdfview/backgroundcolor
---

# backgroundColor

The view’s background color.

## Declaration

```swift
var backgroundColor: UIColor { get set }
```

```swift
var backgroundColor: NSColor { get set }
```

## Discussion

Discussion A view’s background is the area displayed to either side of a PDF document’s pages. The background also appears between pages when page breaks are enabled. The default color is a 50% gray.

## See Also

### Setting Background Color

- [takeBackgroundColorFrom(_:)](pdfkit/pdfview/takebackgroundcolorfrom(_:).md)
