presentingViewController(for:)
Provides the view controller that presents the interface objects.
Declaration
@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.