---
title: isActive
framework: uikit
role: symbol
role_heading: Instance Property
path: uikit/uisearchdisplaycontroller/isactive
---

# isActive

The visibility state of the search interface.

## Declaration

```swift
var isActive: Bool { get set }
```

## Discussion

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

- [setActive(_:animated:)](uikit/uisearchdisplaycontroller/setactive(_:animated:).md)
