setShowsScope(_:animated:)
Specifies whether the scope bar is displayed, optionally using an animation.
Declaration
func setShowsScope(_ show: Bool, animated animate: Bool)Parameters
- show:
A Boolean value that indicates whether the scope bar is shown.
- animate:
A Boolean value that indicates whether the scope bar animates when it appears and disappears.
Discussion
If the search bar is owned by a UISearchController, then calling this method implicitly sets the search controller’s automaticallyShowsScopeBar property to false.