windowBackground
A style appropriate for elements that should match the background of their containing window.
Declaration
static var windowBackground: WindowBackgroundShapeStyle { get }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.