One Logo Pool Ball
SwiftUI · IOS API REFERENCE

TabRole

struct · iOS 18.0+ · SDK 27.1

struct TabRole

A value that defines the purpose of the tab.

Members (2)

get · iOS 18.0+

search

TypeScript
static get search(): TabRole
Swift declaration
static var search: TabRole { get }

The search role. Searchable tab views will prefer to have the first tab with this role implement search. If no tabs are specified as the search tab, the tab view will apply search to all tabs, resetting search state as the selected tab changes.

get · iOS 27.0+

prominent

TypeScript
static get prominent(): TabRole
Swift declaration
static var prominent: TabRole { get }

The prominent role. A tab role that provides prominent visual treatment to one of the tabs in supported tab bars. Only one tab can receive the prominent treatment. When there are no tabs with an explicit `.prominent` role, then a `.search` role tab may receive the prominent visual treatment by default.

Skipped declarations

No declarations were skipped in this snapshot.

All SwiftUI types →