iPhone Duo SwiftUI examples
Explore SwiftUI APIs, components, and modifiers on iPhone Duo. Compare portrait and landscape layouts in closed, partially open, and fully open states, with Swift code and Apple documentation.
16elements
View
Disabled Toolbar Vertical Behavior
Disables the vertical bar.
Explore Disabled Toolbar Vertical Behavior on iPhone Duo in portrait and landscape across closed, partially open, and fully open states, with SwiftUI code and Apple API documentation.
SwiftUI code
TabView {
Tab("1", systemImage: "1.circle") {
NavigationStack {
Text("0")
.toolbar {
Button(role: .confirm, action: action)
}
}
}
Tab("2", systemImage: "2.circle") {
Text("2")
}
}
.toolbarVerticalBehavior(.disabled)Compatibility
iOS 27.1+ iPadOS 27.1+
Tags
Found an issue or have a suggestion?
All variants
Every available iPhone Duo screenshot for Disabled Toolbar Vertical Behavior.