---
title: ContainerBackgroundPlacement
framework: swiftui
role: symbol
role_heading: Structure
path: swiftui/containerbackgroundplacement
---

# ContainerBackgroundPlacement

The placement of a container background.

## Declaration

```swift
struct ContainerBackgroundPlacement
```

## Overview

Overview This method controls where to place a background that you specify with the containerBackground(_:for:) or containerBackground(for:alignment:content:) modifier.

## Topics

### Getting placements

- [navigation](swiftui/containerbackgroundplacement/navigation.md)
- [tabView](swiftui/containerbackgroundplacement/tabview.md)
- [widget](swiftui/containerbackgroundplacement/widget.md)

### Getting StoreKit placements

- [subscriptionStore](swiftui/containerbackgroundplacement/subscriptionstore.md)
- [subscriptionStoreFullHeight](swiftui/containerbackgroundplacement/subscriptionstorefullheight.md)
- [subscriptionStoreHeader](swiftui/containerbackgroundplacement/subscriptionstoreheader.md)

### Type Properties

- [navigationSplitView](swiftui/containerbackgroundplacement/navigationsplitview.md)
- [window](swiftui/containerbackgroundplacement/window.md)

## Relationships

### Conforms To

- [Equatable](swift/equatable.md)
- [Hashable](swift/hashable.md)
- [Sendable](swift/sendable.md)
- [SendableMetatype](swift/sendablemetatype.md)

## See Also

### Layering views

- [Adding a background to your view](swiftui/adding-a-background-to-your-view.md)
- [ZStack](swiftui/zstack.md)
- [zIndex(_:)](swiftui/view/zindex(_:).md)
- [background(alignment:content:)](swiftui/view/background(alignment:content:).md)
- [background(_:ignoresSafeAreaEdges:)](swiftui/view/background(_:ignoressafeareaedges:).md)
- [background(ignoresSafeAreaEdges:)](swiftui/view/background(ignoressafeareaedges:).md)
- [background(_:in:fillStyle:)](swiftui/view/background(_:in:fillstyle:).md)
- [background(in:fillStyle:)](swiftui/view/background(in:fillstyle:).md)
- [overlay(alignment:content:)](swiftui/view/overlay(alignment:content:).md)
- [overlay(_:ignoresSafeAreaEdges:)](swiftui/view/overlay(_:ignoressafeareaedges:).md)
- [overlay(_:in:fillStyle:)](swiftui/view/overlay(_:in:fillstyle:).md)
- [backgroundMaterial](swiftui/environmentvalues/backgroundmaterial.md)
- [containerBackground(_:for:)](swiftui/view/containerbackground(_:for:).md)
- [containerBackground(for:alignment:content:)](swiftui/view/containerbackground(for:alignment:content:).md)
