---
title: scopeBarActivation
framework: uikit
role: symbol
role_heading: Instance Property
path: uikit/uisearchcontroller/scopebaractivation-swift.property
---

# scopeBarActivation

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

## Declaration

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

## Discussion

Discussion note: UISearchBar doesn’t show the scope bar if scopeButtonTitles contains fewer than two titles.

## See Also

### Configuring the search interface

- [obscuresBackgroundDuringPresentation](uikit/uisearchcontroller/obscuresbackgroundduringpresentation.md)
- [hidesNavigationBarDuringPresentation](uikit/uisearchcontroller/hidesnavigationbarduringpresentation.md)
- [automaticallyShowsCancelButton](uikit/uisearchcontroller/automaticallyshowscancelbutton.md)
- [automaticallyShowsSearchResultsController](uikit/uisearchcontroller/automaticallyshowssearchresultscontroller.md)
- [showsSearchResultsController](uikit/uisearchcontroller/showssearchresultscontroller.md)
- [searchBarPlacement](uikit/uisearchcontroller/searchbarplacement.md)
- [ignoresSearchSuggestionsForSearchBarPlacementStacked](uikit/uisearchcontroller/ignoressearchsuggestionsforsearchbarplacementstacked.md)
- [automaticallyShowsScopeBar](uikit/uisearchcontroller/automaticallyshowsscopebar.md)
- [UISearchController.ScopeBarActivation](uikit/uisearchcontroller/scopebaractivation-swift.enum.md)
