Is that possible to use p5.js in Swift?

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

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