SwiftyDropbox SDK talk video and sample app

A few weeks ago, I gave a talk at the Twilio Signal conference about our new SwiftyDropbox SDK.

I demoed PhotoWatch, a sample app built with SwiftyDropbox that displays photos from your Dropbox on your Apple Watch. PhotoWatch uses two methods from the SwiftyDropbox SDK to interact with Dropbox: filesListFolder and filesDownload. Check out the source code on GitHub.

Read more

SwiftyDropbox v0.2

There’s a new version of our Swift SDK for API v2: SwiftyDropbox v0.2

This week we made a breaking change to the serialization format of the API v2 preview. SwiftyDropbox has now been updated it accordingly. All you need to do to upgrade to SwiftyDropbox v0.2 is change the version number in the tag of your Podfile like so:

then run:

In SwiftyDropbox v0.2, we’ve also added a Dropbox helper class to make everything cleaner and simpler in the case where your app only expects each user to link one Dropbox account.

Read more

Try out SwiftyDropbox, the new Swift SDK for Dropbox API v2!

[EDIT June 18, 2015] Sample code for linking a user was updated to show how to check if a user has already been authorized.

[EDIT June 3, 2015] This post has been updated to reflect the latest SwiftyDropbox SDK, v0.2.

We recently announced our new API v2, and now we’re excited to bring you our first of many new SDKs for the new API… in Swift!

A lot of iOS apps integrate with Dropbox already, and we think Swift is the programming language of the future when it comes to building iOS apps.

Read more

Lists app in Swift and Swift Hack Day

Update: The Sync and Datastore SDK has been deprecated. Learn more here.

A couple weekends ago, Dropbox participated in Swift Hack Day in San Francisco.

I got a chance to play around with the new Swift programming language for iOS and OS X and even created my own hack, a Swift version of our Lists sample app.

You can find the code for Swift Lists on GitHub.

I’m still new to Swift so check it out and let us know what you think on our developer forum!

Read more

Swift apps with Dropbox

Update: The Sync and Datastore SDK has been deprecated. Learn more here.

Swift is a new programming language for iOS and OS X with a modern syntax. Swift is fast and powerful and it’s easy to see why Swift is gaining popularity amongst developers.

We’re happy to say that you can use any of the Dropbox SDKs for iOS/OS X in your Swift app. Let’s take a look at using the iOS Sync SDK in Swift.

Importing the Dropbox framework

To get started, you’ll need to follow the iOS Sync SDK installation instructions.

Read more