<!--
{
  "availability" : [
    "iOS: 14.0.0 -",
    "iPadOS: 14.0.0 -",
    "macCatalyst: 14.0.0 -",
    "macOS: 11.0.0 -",
    "tvOS: 14.0.0 -",
    "visionOS: 1.0.0 -",
    "watchOS: 7.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "SwiftUI",
  "identifier" : "/documentation/SwiftUI/ToolbarItemGroup/init(placement:content:)",
  "metadataVersion" : "0.1.0",
  "role" : "Initializer",
  "symbol" : {
    "kind" : "Initializer",
    "modules" : [
      "SwiftUI"
    ],
    "preciseIdentifier" : "s:7SwiftUI16ToolbarItemGroupV9placement7contentACyxGAA0cD9PlacementV_xyXEtcfc"
  },
  "title" : "init(placement:content:)"
}
-->

# init(placement:content:)

Creates a toolbar item group with a specified placement and content.

```
nonisolated init(placement: ToolbarItemPlacement = .automatic, @ContentBuilder content: () -> Content)
```

## Discussion

- placement: Which section of the toolbar all of its vended
  `ToolbarItem`s should be placed in.
- content: The content of the group. Each view specified in the
  `ContentBuilder` will be given its own `ToolbarItem` in the toolbar.

---

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)