Is StoreKit 2 for Swift only?

My app is a hybrid of ObjC and Swift as I have been converting it from ObjC to Swift a bit at a time. I need to integrate In-App Purchases now and I'd like to use StoreKit 2. However, when I have one of my Swift classes return a Product object, my ObjC classes don't seem to have access to the Product type and referring to it as an SKProduct type doesn't work either.

Is it possible to interact with the Store Kit 2 APIs from ObjC code? Or am I going to need to isolate all of the StoreKit2 stuff in my Swift code and communicate differently when it's time to communicate with my old ObjC code?

Thanks, Kenny

Replies

Ya I think you'd have to box all the StoreKit2 structs in classes that inherit from NSObject to access it from Objective-C, which would be pretty time consuming. Not sure why they decided to make it so difficult to use this API from an Objective-C app.