Pinned Toolbar Item Placement
A placement that pins the item to the trailing edge of the toolbar.
Platform Compatibility
Tags
SwiftUI Code
NavigationStack {
Text("FooBar")
.toolbar {
ForEach(0 ..< 10) { _ in
ToolbarItem {
Text("Foo")
}
}
ToolbarItem(placement: .topBarPinnedTrailing) {
Text("Bar")
}
}
}