Implement Shopify in iOS app written in Swift
I'm relatively new to iOS development and I'm new to Shopify. I'm trying to add a feature to my iOS app (written in Swift) to sell products from a business partner's Shopify store using the Mobile Buy SDK for iOS. I've imported the framework into my app, but am now stuck as I know Swift but not Objective-C and all of the Shopify documentation is written in Objective-C... Maybe I'm missing something obvious, but how can I get a basic store up and running?? Can I use Objective-C code from Shopify's sample app in my Swift app? Or do I need to figure out how to translate a bunch of Objective-C into Swift? Thanks in advance!
Create a bridging header and you can then access it with Swift
Install the library via CocoaPods, and you'll be able to access, all their documentation is still written in Obj-C, but it's not that hard to get the general idea of how to write it in Swift, let me know how you get on!
Didn't find the answer?
Our community is visited by hundreds of Shopify development professionals every day. Ask your question and get a quick answer for free.
Find the answer in similar questions on our website.
Write quick answer
Do you know the answer to this question? Write a quick response to it. With your help, we will make our community stronger.