Contents

init(placement:content:)

Creates a toolbar item with the specified placement and content.

Declaration

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

Parameters

  • placement:

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

  • content:

    The content of the item.

See Also

Creating a toolbar item