<!--
{
  "availability" : [
    "iOS: 17.0.0 -",
    "iPadOS: 17.0.0 -",
    "macCatalyst: 18.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "AVKit",
  "identifier" : "/documentation/AVKit/AVPlayerViewController/toggleLookupAction",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Property",
  "symbol" : {
    "kind" : "Instance Property",
    "modules" : [
      "AVKit"
    ],
    "preciseIdentifier" : "c:objc(cs)AVPlayerViewController(py)toggleLookupAction"
  },
  "title" : "toggleLookupAction"
}
-->

# toggleLookupAction

An action that enables the visual lookup interface.

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

## Discussion

When a user toggles the lookup UI, the state property is <doc://com.apple.documentation/documentation/UIKit/UIMenuElement/State/on>, and is <doc://com.apple.documentation/documentation/UIKit/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.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)