obscuresBackgroundDuringPresentation
A Boolean indicating whether to obscure the underlying content during a search.
Declaration
var obscuresBackgroundDuringPresentation: Bool { get set }Discussion
When the value of this property is true, the search controller obscures the view controller containing your searchable content as soon as the user interacts with the search bar. When this property is false, the search controller doesn’t obscure the original view controller. This property controls only whether the original view controller is initially obscured. When the user enters text in the search bar, the search controller immediately displays the search results controller with the results.
If you use the same view controller to display the searchable content and search results, it’s recommended that you set this property to false. The default value of this property is true.