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
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
theapache64
04/02/2021, 6:38 PM
nice 👌
g
Glen
04/04/2021, 11:57 AM
Hot reload incoming 🙂
t
Timo Drick
04/04/2021, 11:14 PM
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.