---
title: "takeBackgroundColorFrom(_:)"
framework: pdfkit
role: symbol
role_heading: Instance Method
path: "pdfkit/pdfview/takebackgroundcolorfrom(_:)"
---

# takeBackgroundColorFrom(_:)

Sets the view’s background color to the specified color.

## Declaration

```swift
@IBAction func takeBackgroundColorFrom(_ sender: Any)
```

## 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

- [backgroundColor](pdfkit/pdfview/backgroundcolor.md)
