init(id:placement:content:)
Creates a toolbar item with the specified placement and content, which allows for user customization.
Declaration
nonisolated init(id: String, placement: ToolbarItemPlacement = .automatic, @ViewBuilder content: () -> Content)Parameters
- id:
A unique identifier for this item.
- placement:
Which section of the toolbar the item should be placed in.
- content:
The content of the item.