Wow! It makes sense now that you explain it, just sounds like a lot of work, but if you can do it, great! So for iOS you will go directly to UIKit then?
This is really interesting to me.. I've been playing around with an idea of a SwiftOS SwiftOS, a proposal - #38 by MadeByDouglas and thinking how it could be more than just a cool swift project, i.e. practical improvements over existing OSs with a chance of real world adoption. Something technically sound and with a whole new UX paradigm centered around composable, agentic widgets, instead of isolated apps.
After a lot of talking with people and research, looking at Linux, FreeBSD, XNU, RedoxOS, someone reminded me about FuchsiaOS and when I looked at it, seems to me it is the future OS I imagine, a micro kernel, secure, high performant, replacement for Android (no more Java) and Linux, and curiously enough inspired by iOS (and beOS.)
I think the way forward for SwiftOS is that it starts as a Fuchsia desktop environment written in swift and to allow swift applications to run on it. They already have GTK bindings and effort to run Linux apps, but we can also talk to the compositor, Scenic, and their 2d renderer, Flatland, directly, which is how their default implementation in Flutter works. Scenic, the Fuchsia system compositor
I think your SwiftCrossUI library would be the perfect use case for this, as we'd add Fuchsia as another backend. I'm also wondering if we can make easy to reuse widgets like how Streamlit works in Python. Would you be interested in collaborating on this?