Contents

presentationAnchorForPresentmentController(_:)

Indicates the presentation anchor within which the system presents the controller’s UI to the presentment controller.

Declaration

@MainActor func presentationAnchorForPresentmentController(_ presentmentController: any IdentityDocumentPresentmentControlling) -> IdentityDocumentPresentationAnchor?

Parameters

  • presentmentController:

    The active presentment controller.

Return Value

The presentation anchor the system uses to present UI.

Discussion

Returning nil from this method results in an IdentityDocumentWebPresentmentError/invalidRequest error when performing an authorization request.