Contents

automaticallyShowsScopeBar

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

Declaration

var automaticallyShowsScopeBar: Bool { get set }

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.

See Also

Configuring the search interface