<!--
{
  "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.property",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Property",
  "symbol" : {
    "kind" : "Instance Property",
    "modules" : [
      "UIKit"
    ],
    "preciseIdentifier" : "c:objc(cs)UISearchController(py)scopeBarActivation"
  },
  "title" : "scopeBarActivation"
}
-->

# scopeBarActivation

A mode that determines when the search controller shows and hides the scope bar.

```
var scopeBarActivation: UISearchController.ScopeBarActivation { get set }
```

## Discussion

> Note:
> ``doc://com.apple.uikit/documentation/UIKit/UISearchBar`` doesn’t show the scope bar if ``doc://com.apple.uikit/documentation/UIKit/UISearchBar/scopeButtonTitles`` contains fewer than two titles.

---

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)