---
title: search
framework: swiftui
role: symbol
role_heading: Type Property
path: swiftui/tabrole/search
---

# search

The search role.

## Declaration

```swift
static var search: TabRole { get }
```

## Discussion

Discussion 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.
