<!--
{
  "availability" : [
    "iOS: 16.0.0 -",
    "iPadOS: 16.0.0 -",
    "macCatalyst: 16.0.0 -",
    "macOS: 13.0.0 -",
    "visionOS: 1.0.0 -",
    "watchOS: 9.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "SwiftUI",
  "identifier" : "/documentation/SwiftUI/View/scrollContentBackground(_:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "SwiftUI"
    ],
    "preciseIdentifier" : "s:7SwiftUI4ViewPAAE23scrollContentBackgroundyQrAA10VisibilityOF"
  },
  "title" : "scrollContentBackground(_:)"
}
-->

# scrollContentBackground(_:)

Specifies the visibility of the background for scrollable views within
this view.

```
nonisolated func scrollContentBackground(_ visibility: Visibility) -> some View
```

## Parameters

`visibility`

the visibility to use for the background.

## Discussion

The following example hides the standard system background of the List.

```
List {
    Text("One")
    Text("Two")
    Text("Three")
}
.scrollContentBackground(.hidden)
```

On macOS 15.0 and later, the visibility of the scroll background helps
achieve the seamless window/titlebar appearance for scroll views that
fill the window’s content view, or a pane’s full width and height.
`List` and `Form` have the seamless appearance by default, configurable
by hiding the scroll background. `ScrollView` can become seamless by
making the background visible.

---

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)