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

# init(placement:content:)

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

## Declaration

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

## Discussion

Discussion placement: Which section of the toolbar all of its vended ToolbarItems 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.

## See Also

### Creating a toolbar item group

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