swiftUI example

We are simply trying to get the 00 Login example to work for Universal Login to work on an iOS app targeting 13 on up. We are trying to go SwiftUI all the way and not use storyboards and a viewcontroller like the example in Github. We just invoke the code from a button action to make the WebAuth.start call. The problem with our call is we’re making the call below using the useLegacyAuthentication and after I successfully login it just spins. I take out that option and it returns from the website callback fine. We’re using that option because we want to use the SFSafariViewController to give a more custom feel to our app. I guess to clarify is there a way to do the new SafariAuthenticationSession and control the presentation to be full screen is really what I ought to be asking.

           .webAuth()
                  .scope("openid profile")
                  .useLegacyAuthentication(withStyle: UIModalPresentationStyle.overFullScreen)
                  .audience("https://" + clientInfo.domain + "/userinfo")
                  .start {
1 Like