iPhone SwiftUI layouts

Explore SwiftUI APIs, components, and modifiers with interactive iPhone previews, Swift code, and Apple documentation. Compare every available orientation, appearance, and design.

TabView

Search Tab Role

On Liquid Glass, this tab is placed in its own group. In left-to-right (LTR) layouts, it will always appear on the right side of the TabView.

Explore Search Tab Role on iPhone in portrait, with SwiftUI code and Apple API documentation.

TabView {
    Tab {
        EmptyView()
    }
    Tab("1", systemImage: "1.circle", role: .search) {
        EmptyView()
    }

    Tab("2", image: "cats24x24") {
        EmptyView()
    }
    Tab {
        EmptyView()
    } label: {
        Label("3", systemImage: "3.circle")
    }
}
iOS 18.0+ iPadOS 18.0+ macOS 15.0+ watchOS 11.0+ tvOS 18.0+ visionOS 2.0+

Every available iPhone screenshot for Search Tab Role.

2 views