I am currently developing an app in swift and i want to use the microsoft band with it. The only thing i want to do is include the SDK example of BandHeartRate that is included. The problem is that the SDK is in Objective-C and i don't know if i could use this code in my app.
I have tried the following:
1) Include the CoreBluetooth and Microsoft Band Framework in Linked Frameworks and Libraries
2) Create a bridging header that has:
#import < MicrosoftBandKit_iOS/MicrosoftBandKit_iOS.h >
3) Include the example code in my app (the .h and .m)
It seems that it can't access the framework so i don't know what to do in order to make it work. I just need the example code in objective-C to be included in my app (that is in swift)
Thanks
you absolutely can incorporate the sdk in your app. Add a bridging header (I'm on mobile) and the classes and methods will automatically be cast into swift types ( including autocomplete)