Instance Property


The visibility state of the search interface.


var isActive: Bool { get set }


The default value is false.

If you set this value directly, any change is performed without animation. Use setActive(_:animated:) if a change in state should be animated.

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 property to force the search interface to appear.

See Also

Displaying the Search Interface

func setActive(Bool, animated: Bool)

Displays or hides the search interface, optionally with animation.