Initializer

init(placement:content:)

Creates a toolbar item with the specified placement and content.

Declaration 宣言

init(placement: ToolbarItemPlacement = .automatic, content: () -> Content)
Available when ID is Void and Content conforms to View.

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