# Is that possible to use p5.js in Swift?

**URL:** <https://discourse.processing.org/t/is-that-possible-to-use-p5-js-in-swift/25518>\
**Category:** p5.js\
**Created:** [November 18, 2020, 7:58pm UTC](https://discourse.processing.org/t/is-that-possible-to-use-p5-js-in-swift/25518 "2020-11-18T19:58:13Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![d.kudo](https://avatars.discourse-cdn.com/v4/letter/d/958977/32.png) [@d.kudo](https://discourse.processing.org/u/d.kudo)\
**Post date:** [November 18, 2020, 7:58pm UTC](https://discourse.processing.org/t/is-that-possible-to-use-p5-js-in-swift/25518/1 "2020-11-18T19:58:13Z")

</div>

Hi, there.  
is that possible to import or use p5.js project in Swift?  
or should I rewrite the code to Swift?

---

<div class="post-metadata">

**Author:** ![tony](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/tony/32/949_2.png) [@tony](https://discourse.processing.org/u/tony)\
**Post date:** [November 18, 2020, 11:07pm UTC](https://discourse.processing.org/t/is-that-possible-to-use-p5-js-in-swift/25518/2 "2020-11-18T23:07:34Z")

</div>

I’m never made anything in Swift before, but I found this thread:

> <https://stackoverflow.com/questions/48354804/how-to-import-modules-in-swifts-javascriptcore>
