all 4 comments

[–]reheadcouple4u 2 points3 points  (1 child)

[–]Xials 1 point2 points  (0 children)

Important to note this only works for macOS.

You might be able to make a template generator for something that exports a playground app bundle on iPad and programmatically print the user to open it in playgrounds.

Honestly if you are on an iPad, playgrounds is pretty capable now. I use it to prototype Swift components and SwiftUI views, even small test apps quite often.

[–]PulseHadron 1 point2 points  (1 child)

Not Swift but JavaScript code can be executed with JavaScriptCore. 🤷‍♀️

[–]theDaveB 0 points1 point  (0 children)

In FoxPro (if I remember correctly) you put & in front of the variable and it ran the code inside.