<!--
{
  "availability" : [
    "iOS: 17.0.0 -",
    "iPadOS: 17.0.0 -",
    "macCatalyst: 17.0.0 -",
    "macOS: 14.0.0 -",
    "tvOS: 17.0.0 -",
    "visionOS: 1.0.0 -",
    "watchOS: 10.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "SwiftUI",
  "identifier" : "/documentation/SwiftUI/ContainerBackgroundPlacement",
  "metadataVersion" : "0.1.0",
  "role" : "Structure",
  "symbol" : {
    "kind" : "Structure",
    "modules" : [
      "SwiftUI"
    ],
    "preciseIdentifier" : "s:7SwiftUI28ContainerBackgroundPlacementV"
  },
  "title" : "ContainerBackgroundPlacement"
}
-->

# ContainerBackgroundPlacement

The placement of a container background.

```
struct ContainerBackgroundPlacement
```

## Overview

This method controls where to place a background that you specify with the
[`containerBackground(_:for:)`](/documentation/SwiftUI/View/containerBackground(_:for:)) or
[`containerBackground(for:alignment:content:)`](/documentation/SwiftUI/View/containerBackground(for:alignment:content:)) modifier.

## Topics

### Getting placements

[`navigation`](/documentation/SwiftUI/ContainerBackgroundPlacement/navigation)

A background placement inside a [`NavigationStack`](/documentation/SwiftUI/NavigationStack)
or [`NavigationSplitView`](/documentation/SwiftUI/NavigationSplitView).

[`tabView`](/documentation/SwiftUI/ContainerBackgroundPlacement/tabView)

A background placement inside a [`TabView`](/documentation/SwiftUI/TabView).

[`widget`](/documentation/SwiftUI/ContainerBackgroundPlacement/widget)

The container background placement for a widget.

### Getting StoreKit placements

[`subscriptionStore`](/documentation/SwiftUI/ContainerBackgroundPlacement/subscriptionStore)

An automatic placement within a subscription store view, based on the view’s context.

[`subscriptionStoreFullHeight`](/documentation/SwiftUI/ContainerBackgroundPlacement/subscriptionStoreFullHeight)

A background placement that spans the full height of a subscription store view.

[`subscriptionStoreHeader`](/documentation/SwiftUI/ContainerBackgroundPlacement/subscriptionStoreHeader)

A background placement behind the marketing content of a subscription store view.

## Relationships

### Conforms To

[`Hashable`](/documentation/Swift/Hashable)

[`SendableMetatype`](/documentation/Swift/SendableMetatype)

[`Sendable`](/documentation/Swift/Sendable)

[`Equatable`](/documentation/Swift/Equatable)

---

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)