---
title: windowBackground
framework: swiftui
role: symbol
role_heading: Type Property
path: swiftui/shapestyle/windowbackground
---

# windowBackground

A style appropriate for elements that should match the background of their containing window.

## Declaration

```swift
static var windowBackground: WindowBackgroundShapeStyle { get }
```

## Discussion

Discussion On macOS, this has a unique appearance compared to the default ShapeStyle.background. It matches the default background of a window: a wallpaper-tinted light gray in the light appearance and a wallpaper-tinted dark gray in the dark appearance. On visionOS, the default glass window background can only be created using glassBackgroundEffect. For information about how to use shape styles, see ShapeStyle.

## See Also

### Semantic styles

- [foreground](swiftui/shapestyle/foreground.md)
- [background](swiftui/shapestyle/background.md)
- [selection](swiftui/shapestyle/selection.md)
- [separator](swiftui/shapestyle/separator.md)
- [tint](swiftui/shapestyle/tint.md)
- [placeholder](swiftui/shapestyle/placeholder.md)
- [link](swiftui/shapestyle/link.md)
- [fill](swiftui/shapestyle/fill.md)
