Displays or hides the search interface, optionally with animation.
- iOS 3.0–8.0Deprecated
- Mac Catalyst 13.0–13.0Deprecated
trueto display the search interface if it is not already displayed;
falseto hide the search interface if it is currently displayed.
trueto use animation for a change in visible state, otherwise
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.