[AC-4890] Hyperloop: Unable to integrate Swift source code for Hyperloop project
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | n/a |
Status | Closed |
Resolution | Fixed |
Resolution Date | 2017-04-06T15:38:24.000+0000 |
Affected Version/s | n/a |
Fix Version/s | n/a |
Components | Hyperloop |
Labels | ios |
Reporter | Paresh Thakor |
Assignee | Shak Hossain |
Created | 2017-04-01T19:39:46.000+0000 |
Updated | 2017-04-06T15:38:24.000+0000 |
Description
I am able to integrate some basic Swift code into Hyperloop and it's working well.
Now my issue is, I want to integrate a custom code written in Swift. It's just 4 swift files which I need to integrate using Hyperloop. It would be good if you guide me on how to integrate custom swift code and use the same with Hyperloop enabled Titanium Classci project.
Hello, Please follow the guide in here: http://docs.appcelerator.com/platform/latest/#!/guide/iOS_Hyperloop_Programming_Guide-section-src-46253491_iOSHyperloopProgrammingGuide-UsingSwift. You can import third-party libraries written in Swift. Any *.swift files found in your src directories will automatically be compiled and available to use in your JavaScript just like Objective-C APIs. Thanks.