Initializer

init(placement:content:)

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

Declaration 宣言

init(placement: ToolbarItemPlacement = .automatic, 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.