Contents

init(placement:content:)

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

Declaration

init(placement: ToolbarItemPlacement = .automatic, @ViewBuilder content: () -> Content)

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 ViewBuilder will be given its own ToolbarItem in the toolbar.

See Also

Creating a toolbar item group