---
title: showsScopeBar
framework: uikit
role: symbol
role_heading: Instance Property
path: uikit/uisearchbar/showsscopebar
---

# showsScopeBar

Specifies whether the scope bar is displayed.

## Declaration

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

## Discussion

Discussion If the search bar is owned by a UISearchController, then setting this property implicitly sets the search controller’s automaticallyShowsScopeBar property to false.

## See Also

### Configuring scope bar buttons

- [scopeButtonTitles](uikit/uisearchbar/scopebuttontitles.md)
- [selectedScopeButtonIndex](uikit/uisearchbar/selectedscopebuttonindex.md)
- [setShowsScope(_:animated:)](uikit/uisearchbar/setshowsscope(_:animated:).md)
