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.

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