Instance Method

presentationAnchor(for:)

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

Required.

Declaration

func presentationAnchor(for session: ASWebAuthenticationSession) -> ASPresentationAnchor

Parameters

session

The session asking for the presentation anchor.

Return Value

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

See Also

Specifying the Anchor

typealias ASPresentationAnchor

A platform-specific type that indicates the kind of user interface element to use as a presentation anchor.