ASWebAuthenticationSessionPresenting

@available(iOS 12.0, *)
public protocol ASWebAuthenticationSessionPresenting : AnyObject

This protocol represents an API which is capable of presenting a ASWebAuthenticationSession.

  • The presenter delegate.

    Declaration

    Swift

    var delegate: WebViewPresenterDelegate? { get set }
  • Presents the web view and passes the instance in the completion handler.

    Declaration

    Swift

    func presentWebView(with url: URL, sessionCompletionHandler: @escaping ASWebAuthenticationSession.CompletionHandler, completionHandler: @escaping (ASWebAuthenticationSession?, Error?) -> Void)

    Parameters

    with

    The initial url which will be loaded in the web view. Can not change later.

  • Dismisses the presented web view.

    Declaration

    Swift

    func dismissWebView()
  • reloadWebView() Default implementation

    Reloads the presented webView

    Default Implementation

    Declaration

    Swift

    func reloadWebView()