---
title: "init(placement:content:label:)"
framework: swiftui
role: symbol
role_heading: Initializer
path: "swiftui/toolbaritemgroup/init(placement:content:label:)"
---

# init(placement:content:label:)

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

## Declaration

```swift
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

Discussion A toolbar item group provided a label wraps its content within a ControlGroup which allows the content to collapse down into a menu that presents its content based on available space.

## See Also

### Creating a toolbar item group

- [init(placement:content:)](swiftui/toolbaritemgroup/init(placement:content:).md)
