I did a proof of concept for a LiveCanvas componen...
# compose-desktop
t
I did a proof of concept for a LiveCanvas component where you can change code inside of the Canvas during runtime and it will compile the changes as Kotlinscript instantly. https://gitlab.com/compose1/livecanvas-poc
❤️ 1
🎉 11
K 6
K 21
For now it is just a proof of concept and have many limitations. So only code between //LIVE_CODE_START and //LIVE_CODE_END will be detected. And there should be only one LiveCanvas inside of one kotlin file. But would nice to here ideas from you how to improve this. Also i was not able to compile @Composable functions as KotlinScript maybe someone knows if this is possible. Would be awesome if we could instant change UI.
t
nice 👌
g
Hot reload incoming 🙂
t
Currently i try to figure out a good way of providing parameters for the live code. Because for now you can not use any member variable of the context.
👍🏼 1