init(placement: ToolbarItemPlacement , content: () -> Content)
Creates a toolbar item with the specified placement and content.
Available when
ID
is Void
and Content
conforms to View
.Availability 有効性
Technology
init(id: String
, placement: ToolbarItemPlacement
= .automatic, showsByDefault: Bool
= true, content: () -> Content)
ID
is String
and Content
conforms to View
.
ID
がString
であるそしてContent
がView
に準拠する時に利用可能です。
id
A unique identifier for this item.
placement
Which section of the toolbar the item should be placed in.
showsByDefault
Whether the item appears by default in the toolbar, or only shows if the user explicitly adds it via customization.
content
The content of the item.
init(placement: ToolbarItemPlacement , content: () -> Content)
ID
is Void
and Content
conforms to View
.