Will Compose support multiplatform? Any info on th...
# compose
a
Will Compose support multiplatform? Any info on that?
m
Some people are working on it (https://www.jetbrains.com/careers/jobs/ui-framework-developer-401/). In fact you can already run some super experimental compose on MacOS
m
How is it possible? Isn't Compose a native UI framework?
m
Compose basically draws to a canvas using a lib called skia. If you implement the same APIs for other platforms, you can draw on other platforms.
Then you have to make events work, etc... It's a lot of work but it's possible
s
You can also make compose to work even without canvas, but then many things will have to be re-implemented to account for this new UI layer.
a
Doesn't it go against what Multiplatform is trying to achieve? Where UI stays native on platforms and Core Bussiness Logics are the only one shared?
g
🤔 I wouldn't think that it will be coupled with KMP. KMP enables writing a multiplatform UI framework but it wouldn't be necessarily tidied to what it currently provides. It would be a UI "solution" written using KMP
a
amaizing 🙂
o
stay tuned, we’re working hard to bring some news here! Also note, that Compose itself is already a multiplatform library, and so Compose classes/APIs shall be easily used in multiplatform applications.
❤️ 21
g
I wouldn't say that it's an architecture which mpp trying to achieve, rather it's an architectural approach which is possible and efficient with KMPP, bit if you could also share some ui code, why wouldn't you do this, at least in some cases
☝️ 2