Would creating compose bindings for flutter (or so...
# compose
c
Would creating compose bindings for flutter (or some layer of the flutter stack) be a potential way to get compose-ui displaying on iOS? I know nothing about the internal work that would be required. Has something like this already been experimented with?
r
Compose uses Canvas which is implemented with the Skia library which is what both Flutter and Chrome use. See also Compose for Desktop.
Going through Flutter would mean using a 2nd runtime (Dart's) and that wouldn't be very efficient
All that to say the Compose for Desktop model would make more sense
c
Ah so, in effect it already shares some of the stack (skia). Cool interesting thanks!
r
Fwiw Skia is what Android has been using since Android 1.0
👍 1
c
So at a high level to get it on iOS the probable stack is compose UI -> Kotlin/native middle -> skia canvas? The middle part being the main piece of work?
o
It’s not just rendering, it needs OS interaction like input, app activation, etc.
❤️ 1
c
Using flutter would mean using a second runtime? Hm. Never used flutter, but I guess that's the a big "con" of flutter is that it requires a runtime on top of the Android RT.