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

# drawsBackground

A Boolean that indicates whether the scroll view draws its background.

## Declaration

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

## Discussion

Discussion When the value of this property is true, the scroll view cell fills the background with its background color. If the scroll view encloses an NSClipView, setting this property to false also sets the NSClipView property copiesOnScroll to false. The side effect of setting drawsBackground directly on the NSClipView instead is the appearance of “trails” (vestiges of previous drawing) in the document view as it is scrolled.

## See Also

### Related Documentation

- [drawsBackground](appkit/nsclipview/drawsbackground.md)
- [copiesOnScroll](appkit/nsclipview/copiesonscroll.md)

### Managing Graphics Attributes

- [backgroundColor](appkit/nsscrollview/backgroundcolor.md)
- [borderType](appkit/nsscrollview/bordertype.md)
- [documentCursor](appkit/nsscrollview/documentcursor.md)
