<!--
{
  "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/ToolbarItemGroup/init(placement:content:label:)",
  "metadataVersion" : "0.1.0",
  "role" : "Initializer",
  "symbol" : {
    "kind" : "Initializer",
    "modules" : [
      "SwiftUI"
    ],
    "preciseIdentifier" : "s:7SwiftUI16ToolbarItemGroupV9placement7content5labelACyAA07LabeledcdE7ContentVyqd__qd_0_GGAA0cD9PlacementV_qd__yXEqd_0_yXEtcAIRszAA4ViewRd__AaMRd_0_r0_lufc"
  },
  "title" : "init(placement:content:label:)"
}
-->

# init(placement:content:label:)

Creates a toolbar item group with the specified placement, content,
and a label describing that content.

```
nonisolated init<C, L>(placement: ToolbarItemPlacement = .automatic, @ContentBuilder content: () -> C, @ContentBuilder label: () -> L) where Content == LabeledToolbarItemGroupContent<C, L>, C : View, L : View
```

## Parameters

`placement`

Which section of the toolbar
the item should be placed in.

`content`

The content of the item.

`label`

The label describing the content of the item.

## Discussion

A toolbar item group provided a label wraps its content within a
[`ControlGroup`](/documentation/SwiftUI/ControlGroup) which allows the content to collapse down into a
menu that presents its content based on available space.

---

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)