We are aware of the issue with the badge emails resending to everyone, we apologise for the inconvenience - learn more here.

Forum Discussion

brduffy's avatar
brduffy
Explorer | Level 4
6 years ago

IOS App integration overview

HI, I'm planning on integrating DropBox into my IOS (Swift) iphone app. I guess API v2 is the way to go. I don't see that the simpler "chooser" and "saver" are available for Swift.  I want the in...
  • Greg-DB's avatar
    6 years ago

    We do have a Chooser implementation for iOS, but as you mentioned, it's not written in Swift. You may still be able to use that in a Swift project, via a "bridging header", but that hasn't been explicitly tested, so I can't promise if that would work or offer instructions for doing so.

    For uploading and downloading in Swift, using API v2 via SwiftyDropbox is probably best. PhotoWatch is the official example for that, but make sure you go through the SwiftyDropbox readme as well.

    Using the Dropbox API does not require the official Dropboxi OS app to also be installed.

    If the official Dropbox iOS app is not installed, the app authorization flow will be handled in an SFSafariViewController inside your app, which will allow landscape mode. (The SDK doesn't have any other UI of its own; the rest of the UI is under your control.) If the official iOS Dropbox app is installed, the SDK will automatically switch to that to handle the app authorization flow, and then will switch back to your app automatically afterwards. The app authorization page in the official Dropbox iOS app does not currently support landscape orientation though.