---
title: currentController
framework: quicklookui
role: symbol
role_heading: Instance Property
path: quicklookui/qlpreviewpanel/currentcontroller
---

# currentController

The current first responder accepting to control the preview panel.

## Declaration

```swift
var currentController: Any! { get }
```

## Discussion

Discussion You should never change the preview panel’s state (for example, its delegate, datasource, and so on) if you aren’t controlling it.

## See Also

### Accessing the Preview Panel Controller

- [updateController()](quicklookui/qlpreviewpanel/updatecontroller().md)
