Back to News for Developers

Swift SDK Beta

July 14, 2016ByNikita Lutsenko

Since its WWDC 2014 introduction, Swift has proven to be one of the fastest growing programming languages. We believe it is important for us to grow and diversify our developer ecosystem by extending our platform capabilities to Swift app developers on iOS, watchOS, tvOS, and macOS.

Earlier this year we provided a complete Swift implementation for Bolts that exposes many native Swift features, including proper generic types, support for value types, and native Swift error handling.

Today, we are proud to announce a Facebook SDK for Swift Beta to make it easier for developers to build rich experiences using Swift apps. As with many Facebook projects, we are releasing the source code.

The Facebook SDK for Swift beta provides native Swift frameworks that wraps our existing Objective-C SDK for iOS to provide the following features:

  1. Facebook Analytics for Apps - Powerful tools for understanding your audience, optimizing their experiences, and reaching them with engaging campaigns
  2. Facebook Login - The world's number one single sign-on product
  3. Share to Facebook - The best way for people to share links, photos, videos and other content from your app with friends on Facebook
  4. Facebook Graph API - Creating personalized experiences

Since Swift is still under active development, the Facebook SDK for Swift Beta supports Swift 2.2.1 and 2.3, which gives you the ability to submit apps to the Apple App Store today. Later this year we will update the Facebook SDK for Swift when Swift 3 reaches GM.

You can download the beta on GitHub or integrate via CocoaPods or Carthage. Read our getting started guide. We look forward to your feedback and contributions.