<!--
{
  "availability" : [
    "macOS: -"
  ],
  "documentType" : "symbol",
  "framework" : "AppKit",
  "identifier" : "/documentation/AppKit/NSScrollView/drawsBackground",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Property",
  "symbol" : {
    "kind" : "Instance Property",
    "modules" : [
      "AppKit"
    ],
    "preciseIdentifier" : "c:objc(cs)NSScrollView(py)drawsBackground"
  },
  "title" : "drawsBackground"
}
-->

# drawsBackground

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

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

## Discussion

When the value of this property is <doc://com.apple.documentation/documentation/Swift/true>, the scroll view cell fills the background with its background color.

If the scroll view encloses an `NSClipView`, setting this property to <doc://com.apple.documentation/documentation/Swift/false> also sets the `NSClipView` property [`copiesOnScroll`](/documentation/AppKit/NSClipView/copiesOnScroll) to <doc://com.apple.documentation/documentation/Swift/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

[`drawsBackground`](/documentation/AppKit/NSClipView/drawsBackground)

A Boolean value that indicates if the clip view draws its background color.

[`copiesOnScroll`](/documentation/AppKit/NSClipView/copiesOnScroll)

A Boolean value that indicates if the clip view copies rendered images while scrolling.



---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)