How to exec swift code using swift script? And how to build a swiftUI Live update view system?

I want to build app help you to create apps without coding..And now i want to know many thing..

First:
is There a way to exec/Compile a swift code using Function? Such as python if we want to exec a python code we use -exec- Function..Like this:

exec(“print(‘Hello world’)”)

Hello world

So is there same in swift ?

Second :
Another thing i need in the app, Which is :
is there a way to Create a hot reload a view in swiftUI to make the User to see the real time view result ?

is There a way to exec/Compile a swift code using Function?

Not really. Swift is a compiled language, and such things are generally hard to do in compiled language. It’s not impossible to do stuff like this — consider Swift Playgrounds — but it requires that you bring in the entire compiler. That is a serious engineering challenge.

Share and Enjoy

Quinn “The Eskimo!” @ DTS @ Apple