<!--
{
  "availability" : [
    "iOS: 16.0.0 -",
    "iPadOS: 16.0.0 -",
    "macCatalyst: 16.0.0 -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "UIKit",
  "identifier" : "/documentation/UIKit/UISearchController/ScopeBarActivation-swift.enum",
  "metadataVersion" : "0.1.0",
  "role" : "Enumeration",
  "symbol" : {
    "kind" : "Enumeration",
    "modules" : [
      "UIKit"
    ],
    "preciseIdentifier" : "c:@E@UISearchControllerScopeBarActivation"
  },
  "title" : "UISearchController.ScopeBarActivation"
}
-->

# UISearchController.ScopeBarActivation

Constants that specify the modes for showing and hiding the scope bar.

```
enum ScopeBarActivation
```

## Overview

You use these constants with the [`scopeBarActivation`](/documentation/UIKit/UISearchController/scopeBarActivation-swift.property) property.

## Topics

### Constants

[`case automatic`](/documentation/UIKit/UISearchController/ScopeBarActivation-swift.enum/automatic)

A mode in which the system automatically determines when to show and hide the scope bar.

[`case manual`](/documentation/UIKit/UISearchController/ScopeBarActivation-swift.enum/manual)

A mode that gives you manual control over when to show and hide the scope bar.

[`case onTextEntry`](/documentation/UIKit/UISearchController/ScopeBarActivation-swift.enum/onTextEntry)

A mode in which the search controller shows the scope bar when typing begins in the search field, and hides it after search cancellation.

[`case onSearchActivation`](/documentation/UIKit/UISearchController/ScopeBarActivation-swift.enum/onSearchActivation)

A mode in which the search controller shows the scope bar when search becomes active, and hides it after search cancellation.

### Initializers

[`init?(rawValue: Int)`](/documentation/UIKit/UISearchController/ScopeBarActivation-swift.enum/init(rawValue:))

## Relationships

### Conforms To

[`BitwiseCopyable`](/documentation/Swift/BitwiseCopyable)

[`SendableMetatype`](/documentation/Swift/SendableMetatype)

[`RawRepresentable`](/documentation/Swift/RawRepresentable)

[`Equatable`](/documentation/Swift/Equatable)

[`Sendable`](/documentation/Swift/Sendable)

[`Hashable`](/documentation/Swift/Hashable)

---

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)