<!--
{
  "availability" : [
    "iOS: 26.0.0 -",
    "iPadOS: 26.0.0 -",
    "macCatalyst: 26.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "UIKit",
  "identifier" : "/documentation/UIKit/UISearchTab/automaticallyActivatesSearch",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Property",
  "symbol" : {
    "kind" : "Instance Property",
    "modules" : [
      "UIKit"
    ],
    "preciseIdentifier" : "c:objc(cs)UISearchTab(py)automaticallyActivatesSearch"
  },
  "title" : "automaticallyActivatesSearch"
}
-->

# automaticallyActivatesSearch

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

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

## 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`.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)