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

# backgroundViewScrollsWithContent

A Boolean value that indicates whether the collection view’s background view scrolls with the items and other content.

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

## Discussion

The default value of this property is <doc://com.apple.documentation/documentation/Swift/false>, which means that [`backgroundView`](/documentation/AppKit/NSCollectionView/backgroundView) (if it exists) fills the collection view’s visible area and remains stationary when the collection view’s content is scrolled. When the value of this property is <doc://com.apple.documentation/documentation/Swift/true>, [`backgroundView`](/documentation/AppKit/NSCollectionView/backgroundView) matches the collection view’s frame and scrolls with the collection view’s items and other content.

Changing the value of this property also changes the background view’s parent. When [`backgroundView`](/documentation/AppKit/NSCollectionView/backgroundView) floats behind the scrolling content, it is a sibling of the collection view’s clip view. When it scrolls with the collection view’s content, it is a subview of the collection view.

---

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)