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

# backgroundColor

The color of the widget’s background.

## Declaration

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

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

## See Also

### Configuring Widget Annotations

- [widgetFieldType](pdfkit/pdfannotation/widgetfieldtype.md)
- [widgetStringValue](pdfkit/pdfannotation/widgetstringvalue.md)
- [widgetDefaultStringValue](pdfkit/pdfannotation/widgetdefaultstringvalue.md)
- [fieldName](pdfkit/pdfannotation/fieldname.md)
- [isReadOnly](pdfkit/pdfannotation/isreadonly.md)
- [PDFWidgetControlType](pdfkit/pdfwidgetcontroltype.md)
- [PDFAppearanceCharacteristics](pdfkit/pdfappearancecharacteristics.md)
