<!--
{
  "availability" : [
    "iOS: 26.0.0 -",
    "iPadOS: 26.0.0 -",
    "macCatalyst: 26.0.0 -",
    "macOS: 26.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "SwiftUI",
  "identifier" : "/documentation/SwiftUI/TabSearchActivation/searchTabSelection",
  "metadataVersion" : "0.1.0",
  "role" : "Type Property",
  "symbol" : {
    "kind" : "Type Property",
    "modules" : [
      "SwiftUI"
    ],
    "preciseIdentifier" : "s:7SwiftUI19TabSearchActivationV06searchC9SelectionACvpZ"
  },
  "title" : "searchTabSelection"
}
-->

# searchTabSelection

Links the search tab’s selection to search activation.

```
static var searchTabSelection: TabSearchActivation { get }
```

## Discussion

When the search tab is selected, search will activate. When the user
dismisses search, the search tab will be deselected and the previously
selected tab will be reselected.

---

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)