---
title: drawsBackground
framework: appkit
role: symbol
role_heading: Instance Property
path: appkit/nstextview/drawsbackground
---

# drawsBackground

A Boolean value that indicates whether the receiver draws its background.

## Declaration

```swift
var drawsBackground: Bool { get set }
```

## Discussion

Discussion true to cause the receiver to fill its background with the background color,  false otherwise.

## See Also

### Setting graphics attributes

- [backgroundColor](appkit/nstextview/backgroundcolor.md)
- [allowsDocumentBackgroundColorChange](appkit/nstextview/allowsdocumentbackgroundcolorchange.md)
- [changeDocumentBackgroundColor(_:)](appkit/nstextview/changedocumentbackgroundcolor(_:).md)
