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

# drawsBackground

A Boolean that controls whether the receiver draws its background.

## Declaration

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

## Discussion

Discussion If flag is true, the receiver fills its background with the background color, if flag is false, it doesn’t.

## See Also

### Setting graphics attributes

- [backgroundColor](appkit/nstext/backgroundcolor.md)
