<!--
{
  "availability" : [
    "macOS: 26.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "IdentityDocumentServicesUI",
  "identifier" : "/documentation/IdentityDocumentServicesUI/IdentityDocumentPresentmentControllerPresentationContextProviding/presentationAnchorForPresentmentController(_:)-58gth",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "IdentityDocumentServicesUI"
    ],
    "preciseIdentifier" : "s:26IdentityDocumentServicesUI0aB49PresentmentControllerPresentationContextProvidingP021presentationAnchorForeF0ySo8NSWindowCSgAA0abE11Controlling_pF"
  },
  "title" : "presentationAnchorForPresentmentController(_:)"
}
-->

# presentationAnchorForPresentmentController(_:)

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

```
@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.

---

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)