You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I don't know that this is a bug that the Dropbox team can fix as it may just be an issue inherent to SwiftUI, but I thought I'd write up an issue that others may finding searching since it caught me for a couple of hours this morning until I figured it out.
If the auth flow is initiated from SwiftUI, if the UIViewController passed to the DropboxClientsManager resides in a ScrollView, the resulting SafariViewController won't load the Dropbox page. It'll either be completely blank, or uninitialized (eg just say "Website name" at the top).
Here's reproducible code (iOS 13.4) -- note that removing the ScrollView from ContentView solves the problem:
The team has updated SwiftyDropbox to support SwiftUI in the latest version of the SDK (v9.1.0). Let us know if you try that and run in to any issues. Thanks!
I don't know that this is a bug that the Dropbox team can fix as it may just be an issue inherent to SwiftUI, but I thought I'd write up an issue that others may finding searching since it caught me for a couple of hours this morning until I figured it out.
If the auth flow is initiated from SwiftUI, if the
UIViewController
passed to theDropboxClientsManager
resides in aScrollView
, the resultingSafariViewController
won't load the Dropbox page. It'll either be completely blank, or uninitialized (eg just say "Website name" at the top).Here's reproducible code (iOS 13.4) -- note that removing the
ScrollView
fromContentView
solves the problem:The text was updated successfully, but these errors were encountered: