---
title: backgroundColor
framework: appkit
role: symbol
role_heading: Instance Property
path: appkit/nstextfield/backgroundcolor
---

# backgroundColor

The color of the background the text field’s cell draws behind the text.

## Declaration

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

## See Also

### Controlling the Background

- [drawsBackground](appkit/nstextfield/drawsbackground.md)
- [isBezeled](appkit/nstextfield/isbezeled.md)
- [bezelStyle](appkit/nstextfield/bezelstyle-swift.property.md)
- [NSTextField.BezelStyle](appkit/nstextfield/bezelstyle-swift.enum.md)
