Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

JS 3rd Party Library Support #284

Open
mredig opened this issue Feb 25, 2025 · 2 comments
Open

JS 3rd Party Library Support #284

mredig opened this issue Feb 25, 2025 · 2 comments

Comments

@mredig
Copy link

mredig commented Feb 25, 2025

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.

@kateinoigakukun
Copy link
Member

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

@mredig
Copy link
Author

mredig commented Mar 7, 2025

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!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants