Last night I started building an iOS app with Swift that connects to a Firebase backend. I wanted to use the Firebase iOS SDK, but according to the Using Swift with Cocoa and Objective-C documentation, that requires a build setting change in the Firebase SDK itself. Since I didn't have access to that source, I needed another approach. As I was just on the cusp of writing my own wrapper around the REST API, I realized that I could probably create my own headers that import the Firebase SDK and access it that way. Following the instructions from the afore-linked document, I created a "bridging header" that's meant to import Objective-C code into Swift modules, and put #include <Firebase/Firebase.h> at the top. That was all I had to do, I had total access to the Firebase class and all of its types in Swift. Within a couple more hours I had data from Firebase rendering in a UICollectionView in my app.I've pushed the code I have so far to https://github.com/joefiorini/PunchCards-iOS. I still have a lot of work to do, but this is a start.
--
You received this message because you are subscribed to the Google Groups "Firebase Google Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to firebase-tal...@googlegroups.com.
To post to this group, send email to fireba...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Last night I started building an iOS app with Swift that connects to a Firebase backend. I wanted to use the Firebase iOS SDK, but according to the Using Swift with Cocoa and Objective-C documentation, that requires a build setting change in the Firebase SDK itself. Since I didn't have access to that source, I needed another approach. As I was just on the cusp of writing my own wrapper around the REST API, I realized that I could probably create my own headers that import the Firebase SDK and access it that way. Following the instructions from the afore-linked document, I created a "bridging header" that's meant to import Objective-C code into Swift modules, and put #include <Firebase/Firebase.h> at the top. That was all I had to do, I had total access to the Firebase class and all of its types in Swift. Within a couple more hours I had data from Firebase rendering in a UICollectionView in my app.I've pushed the code I have so far to https://github.com/joefiorini/PunchCards-iOS. I still have a lot of work to do, but this is a start.
--

You received this message because you are subscribed to a topic in the Google Groups "Firebase Google Group" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/firebase-talk/m7vDEdF_lf4/unsubscribe.
To unsubscribe from this group and all its topics, send an email to firebase-tal...@googlegroups.com.
To post to this group, send email to fireba...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to a topic in the Google Groups "Firebase Google Group" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/firebase-talk/m7vDEdF_lf4/unsubscribe.
To unsubscribe from this group and all its topics, send an email to firebase-tal...@googlegroups.com.
To post to this group, send email to fireba...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
To view this discussion on the web visit https://groups.google.com/d/msgid/firebase-talk/6863f6a6-0045-4988-8806-feb9d8fa9f76%40googlegroups.com.
pod 'Firebase', '>=2.3.2'
pod 'FBSDKCoreKit'
pod 'FBSDKLoginKit'
pod 'FBSDKShareKit'
use_frameworks!