<!--
{
  "availability" : [
    "iOS: 16.0.0 -",
    "iPadOS: 16.0.0 -",
    "macCatalyst: 16.0.0 -",
    "macOS: 13.0.0 -",
    "tvOS: 16.0.0 -",
    "visionOS: 1.0.0 -",
    "watchOS: 9.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "SwiftUI",
  "identifier" : "/documentation/SwiftUI/ToolbarPlacement",
  "metadataVersion" : "0.1.0",
  "role" : "Structure",
  "symbol" : {
    "kind" : "Structure",
    "modules" : [
      "SwiftUI"
    ],
    "preciseIdentifier" : "s:7SwiftUI16ToolbarPlacementV"
  },
  "title" : "ToolbarPlacement"
}
-->

# ToolbarPlacement

The placement of a toolbar.

```
struct ToolbarPlacement
```

## Overview

Use this type in conjunction with modifiers like
[`toolbarBackground(_:for:)`](/documentation/SwiftUI/View/toolbarBackground(_:for:)) and [`toolbarVisibility(_:for:)`](/documentation/SwiftUI/View/toolbarVisibility(_:for:)) to
customize the appearance of different bars managed by SwiftUI. Not all bars
support all types of customizations.

See [`ToolbarItemPlacement`](/documentation/SwiftUI/ToolbarItemPlacement) to learn about the different regions of these
toolbars that you can place your own controls into.

## Topics

### Getting placements

[`automatic`](/documentation/SwiftUI/ToolbarPlacement/automatic)

The primary toolbar.

[`accessoryBar(id:)`](/documentation/SwiftUI/ToolbarPlacement/accessoryBar(id:))

Creates a unique accessory bar placement.

[`bottomBar`](/documentation/SwiftUI/ToolbarPlacement/bottomBar)

The bottom toolbar of an app.

[`bottomOrnament`](/documentation/SwiftUI/ToolbarPlacement/bottomOrnament)

The bottom ornament of an app.

[`navigationBar`](/documentation/SwiftUI/ToolbarPlacement/navigationBar)

The navigation bar of an app.

[`tabBar`](/documentation/SwiftUI/ToolbarPlacement/tabBar)

The tab bar of an app.

[`windowToolbar`](/documentation/SwiftUI/ToolbarPlacement/windowToolbar)

The placement for the containing window’s toolbar, sometimes referred to
as the titlebar.

### Deprecated symbols

[`init(id:)`](/documentation/SwiftUI/ToolbarPlacement/init(id:))

Creates a custom accessory bar placement.



---

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)