---
title: "presentationAnchorForPresentmentController(_:)"
framework: IdentityDocumentServicesUI
role: symbol
role_heading: Instance Method
platforms: [macOS 26.0+]
path: "identitydocumentservicesui/identitydocumentpresentmentcontrollerpresentationcontextproviding/presentationanchorforpresentmentcontroller(_:)-58gth"
---

# presentationAnchorForPresentmentController(_:)

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

## Declaration

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

## Parameters

- `presentmentController`: The active presentment controller.

## Return Value

Return Value The presentation anchor the system uses to present UI.

## Discussion

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