OAuthSwiftASWebAuthenticationURLHandler adds ability to use ASWebAuthenticationSession with OAuthSwift while targeting iOS 12.0+ and does not require defining an extra URI scheme in the application's Info.plist or handling the URI scheme in the app delegate.
Add this repository to Xcode using SPM.
oauthSwift.authorizeURLHandler = ASWebAuthenticationSessionURLHandler(
callbackUrlScheme: "scheme",
presentationAnchor: view.window
)For more details of how to use authorizeURLHandler, see the docs in OAuthSwift