---
title: backgroundViewClass
framework: uikit
role: symbol
role_heading: Instance Property
path: uikit/uipopovercontroller/backgroundviewclass
---

# backgroundViewClass

The class to use for displaying the popover background content.

## Declaration

```swift
var backgroundViewClass: AnyClass? { get set }
```

## Discussion

Discussion The default value of this property is nil, which indicates that the popover controller should use the default popover appearance. Setting this property to a value other than nil causes the popover controller to use the specified class to draw the popover’s background content. The class you specify must be a subclass of UIPopoverBackgroundView.

## See Also

### Customizing the popover appearance

- [layoutMargins](uikit/uipopovercontroller/layoutmargins.md)
- [backgroundColor](uikit/uipopovercontroller/backgroundcolor.md)
