For some time I have been trying to find a solution to authenticating Dropbox using their SwiftyDropbox SDK in a SwiftUI project, but this was to no avail.
The instructions provided in the readme use an AppDelegate and and SceneDelegate. The latter of which from what I understand is not possible with SwiftUI. I have been able to get the OAuth2 Safari window to launch, but DropboxClientsManager.authorizedClient is always nil.
Finally, I figured it.
Setup info.plist as the SwiftyDropbox readme instructs.
You don't need to create an AppDelegate.
I hope that someone may find this useful.