Pinned Toolbar Item Placement
A placement that pins the item to the trailing edge of the toolbar.
Platform Compatibility
iOS 27.0+ iPadOS 27.0+ visionOS 27.0+
Tags
SwiftUI Code
NavigationStack {
Text("FooBar")
.toolbar {
ForEach(0 ..< 10) { _ in
ToolbarItem {
Text("Foo")
}
}
ToolbarItem(placement: .topBarPinnedTrailing) {
Text("Bar")
}
}
}Found an issue or have a suggestion?
Created: August 30, 2026Updated: August 30, 2026