---
title: automaticallyActivatesSearch
framework: uikit
role: symbol
role_heading: Instance Property
path: uikit/uisearchtab/automaticallyactivatessearch
---

# automaticallyActivatesSearch

Determines if the search tab should automatically activate the embedded search field when the tab becomes visible.

## Declaration

```swift
var automaticallyActivatesSearch: Bool { get set }
```

## Discussion

Discussion When this property is set to YES, the search field will be activated when the tab is selected. Moreover, when search is cancelled, the previously selected tab in the tab bar will be restored and selected. The default value is NO.
