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.

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.

TabView {
    Tab("1", systemImage: "1.circle") {
        NavigationStack {
            Text("0")
                .toolbar {
                    Button(role: .confirm, action: action)
                }
        }
    }

    Tab("2", systemImage: "2.circle") {
       Text("2")
    }
}
.toolbarVerticalBehavior(.disabled)
iOS 27.1+ iPadOS 27.1+

Every available iPhone Duo screenshot for Disabled Toolbar Vertical Behavior.

6 views