---
title: toggleLookupAction
framework: avkit
role: symbol
role_heading: Instance Property
path: avkit/avplayerviewcontroller/togglelookupaction
---

# toggleLookupAction

An action that enables the visual lookup interface.

## Declaration

```swift
var toggleLookupAction: UIAction { get }
```

## Discussion

Discussion When a user toggles the lookup UI, the state property is UIMenuElement.State.on, and is UIMenuElement.State.off otherwise. The system disables the action’s attributes when there isn’t visual lookup data available or when the media is playing.

## See Also

### Configuring frame analysis

- [allowsVideoFrameAnalysis](avkit/avplayerviewcontroller/allowsvideoframeanalysis.md)
- [videoFrameAnalysisTypes](avkit/avplayerviewcontroller/videoframeanalysistypes.md)
- [AVVideoFrameAnalysisType](avkit/avvideoframeanalysistype.md)
