setActive(_:animated:)
Displays or hides the search interface, optionally with animation.
Declaration
func setActive(_ visible: Bool, animated: Bool)Parameters
Discussion
When the user focus in the search field of a managed search bar, the search display controller automatically displays the search interface. You can use this method to force the search interface to appear.