<!--
{
  "availability" : [
    "iOS: 16.4.0 -",
    "iPadOS: 16.4.0 -",
    "macCatalyst: 16.4.0 -",
    "macOS: 13.3.0 -",
    "tvOS: 16.4.0 -",
    "visionOS: 1.0.0 -",
    "watchOS: 9.4.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "SwiftUI",
  "identifier" : "/documentation/SwiftUI/SearchScopeActivation",
  "metadataVersion" : "0.1.0",
  "role" : "Structure",
  "symbol" : {
    "kind" : "Structure",
    "modules" : [
      "SwiftUI"
    ],
    "preciseIdentifier" : "s:7SwiftUI21SearchScopeActivationV"
  },
  "title" : "SearchScopeActivation"
}
-->

# SearchScopeActivation

The ways that searchable modifiers can show or hide search scopes.

```
struct SearchScopeActivation
```

## Topics

### Getting search scope activiation types

[`automatic`](/documentation/SwiftUI/SearchScopeActivation/automatic)

The automatic activation of the scope bar.

[`onSearchPresentation`](/documentation/SwiftUI/SearchScopeActivation/onSearchPresentation)

An activation where the system shows search scopes after
presenting search and hides search scopes after search
cancellation.

[`onTextEntry`](/documentation/SwiftUI/SearchScopeActivation/onTextEntry)

An activation where the system shows search scopes
when typing begins in the search field and hides
search scopes after search cancellation.



---

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)