Would it be possible to construct a GUI builder for Compose?
Similar to Android Studio's Layout Editor, or would such be impossible due to the non scriptable nature of Compose (eg, the UI would need to be recompiled for most changes to be seen)
c
Casey Brooks
02/24/2023, 4:44 PM
Have you seen Relay? It’s geared more towards designers rather than developers since it uses Figma, but it might be the kind of tool you’re looking for
k
Koneko Toujou
02/24/2023, 4:49 PM
Specifically if one wants to run such a GUI builder on both Android OS and on Desktop (both as seperate applications)
Then a Compiler must be available on both Desktop and Android in order to compile the Compose kotlin generated code in order to preview/edit the UI, right?
Koneko Toujou
02/24/2023, 4:50 PM
Especially if UI components can be saved/reused while designing the UI
c
Chris Sinco [G]
02/27/2023, 1:17 AM
It’s possible but yes the compiling part would make the GUI editing flow much slower than it is with static XML. Speed aside though, building a great GUI editor is non-trivial and it’s probably more practical to rely on something like Relay since Figma is really good as an interface design tool.