<!--
{
  "availability" : [
    "iOS: 16.0.0 -",
    "iPadOS: 16.0.0 -",
    "macCatalyst: 17.0.0 -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "VisionKit",
  "identifier" : "/documentation/VisionKit/ImageAnalysisInteractionDelegate/presentingViewController(for:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "VisionKit"
    ],
    "preciseIdentifier" : "s:9VisionKit32ImageAnalysisInteractionDelegateP24presentingViewController3forSo06UIViewI0CSgAA0cdE0C_tF"
  },
  "title" : "presentingViewController(for:)"
}
-->

# presentingViewController(for:)

Provides the view controller that presents the interface objects.

```
@MainActor func presentingViewController(for interaction: ImageAnalysisInteraction) -> UIViewController?
```

## Parameters

`interaction`

The associated interaction object for the presented view.

## Return Value

The view controller that presents the interaction object’s highlights, menus, and other elements.

## Discussion

The default return value is the window’s root view controller.

---

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)