---
title: automaticallyShowsScopeBar
framework: uikit
role: symbol
role_heading: Instance Property
path: uikit/uisearchcontroller/automaticallyshowsscopebar
---

# automaticallyShowsScopeBar

A Boolean indicating whether the search controller manages the visibility of the search bar’s scope bar.

## Declaration

```swift
var automaticallyShowsScopeBar: Bool { get set }
```

## Discussion

Discussion By default, UISearchController shows the search bar’s scope bar when search becomes active and hides it when the user dismisses the search. Set this to false if you want to show and hide the scope bar in your own code. If you set the showsScopeBar property, that also changes this property to false. note: The search bar doesn’t show its scope bar at all if there are fewer than two titles in the search bar’s scopeButtonTitles.

## 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)
- [scopeBarActivation](uikit/uisearchcontroller/scopebaractivation-swift.property.md)
- [UISearchController.ScopeBarActivation](uikit/uisearchcontroller/scopebaractivation-swift.enum.md)
