---
title: "presentationAnchor(for:)"
framework: authenticationservices
role: symbol
role_heading: Instance Method
path: "authenticationservices/aswebauthenticationpresentationcontextproviding/presentationanchor(for:)"
---

# presentationAnchor(for:)

Tells the delegate from which window it should present content to the user.

## Declaration

```swift
func presentationAnchor(for session: ASWebAuthenticationSession) -> ASPresentationAnchor
```

## Parameters

- `session`: The session asking for the presentation anchor.

## Mentioned in

Authenticating a User Through a Web Service

## Return Value

Return Value A user interface element that can act as the anchor for the authentication presentation.

## See Also

### Specifying the Anchor

- [ASPresentationAnchor](authenticationservices/aspresentationanchor.md)
