Instance Property

isActive

The visibility state of the search interface.

Declaration

var isActive: Bool { get set }

Discussion

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.

Deprecated

Beta Software

This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.

Learn more about using Apple's beta software