ASWebAuthenticationSession Async/Await API

Is there any particular reason why ASWebAuthenticationSession doesn't have support for async/await? (example below)

do {
  let callbackURL = try await webAuthSession.start()
} catch {
  // handle error
}

I'm curious if this style of integration doesn't exist for architectural reasons? Or is the legacy completion handler style preserved in order to prevent existing integrations from breaking?

This API long predates Swift Concurrency, and hasn't received many updates since then. Existing API can't be removed, because that would break all existing apps that use it, but new API could be added! If this is something you'd like to see, please us know through Feedback Assistant.

ASWebAuthenticationSession Async/Await API
 
 
Q