It will be great if we can use SwiftyStoreKit in old OC project. Please consider this suggestion.
+100
+1
Any alternatives you guys are currently using for Objective-C projects?
Currently, SwiftyStoreKit cannot be used in Objective-C projects.
The main limitation is that most classes and types in the library are Swift-only.
To address this, two routes are possible:
class SwiftyStoreKit to class SwiftyStoreKit: NSObject)Any pull requests for option 1 are welcome. From a maintainer standpoint I wish for the API and code to remain as clean as possible. Any proposed changes will be reviewed with this in mind.
Option 2. may be a quick solution for clients but I would be inclined to not merge this in the main codebase.
Popular ObjC alternatives:
As outlined in the project guidelines, Objective-C support is not planned for this library.
If you want to use this library on Objective-C projects, I suggest writing an Objective-C compatible Swift wrapper for the specific functionality that you need, and import that.
I'm going to close this issue for now.
@bizz84 did anyone ever take up option 1? I dont have the time now, but would be willing to help down the line.
Please support objective-c
Thanks
Most helpful comment
Currently, SwiftyStoreKit cannot be used in Objective-C projects.
The main limitation is that most classes and types in the library are Swift-only.
To address this, two routes are possible:
class SwiftyStoreKittoclass SwiftyStoreKit: NSObject)Any pull requests for option 1 are welcome. From a maintainer standpoint I wish for the API and code to remain as clean as possible. Any proposed changes will be reviewed with this in mind.
Option 2. may be a quick solution for clients but I would be inclined to not merge this in the main codebase.
Popular ObjC alternatives: