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.
201elements
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.
SwiftUI code
TabView {
Tab {
EmptyView()
}
Tab("1", systemImage: "1.circle", role: .search) {
EmptyView()
}
Tab("2", image: "cats24x24") {
EmptyView()
}
Tab {
EmptyView()
} label: {
Label("3", systemImage: "3.circle")
}
}Compatibility
iOS 18.0+ iPadOS 18.0+ macOS 15.0+ watchOS 11.0+ tvOS 18.0+ visionOS 2.0+
Tags
Found an issue or have a suggestion?
All variants
Every available iPhone screenshot for Search Tab Role.