JavaScriptKit icon indicating copy to clipboard operation
JavaScriptKit copied to clipboard

JS 3rd Party Library Support

Open mredig opened this issue 1 year ago • 2 comments

Is there any documentation or is it even possible to access/subclass classes written in another JS library? Specifically, I'm looking to use Phaser, but write my code with swift wasm.

I understand if it isn't supported, but I find anything to indicate that it is or isn't in either direction. I found some hints involving JSBridgedClass, but anything I tried doing hasn't worked so far.

mredig avatar Feb 25 '25 20:02 mredig

We can use any JS functionalities in Swift by passing it via global variables, but I'm working on a feature making this easier.

kateinoigakukun avatar Mar 07 '25 02:03 kateinoigakukun

Oh?! Are there any examples to subclass in the current state of things? I didn't find anything I could understand in the docs or sample code.

I'm working on a feature making this easier.

That sounds awesome!

mredig avatar Mar 07 '25 03:03 mredig