https://kotlinlang.org logo
#compose
Title
# compose
a

ahulyk

09/07/2020, 8:44 AM
Will Compose support multiplatform? Any info on that?
m

mbonnin

09/07/2020, 8:46 AM
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

Mehdi Haghgoo

09/07/2020, 8:48 AM
How is it possible? Isn't Compose a native UI framework?
m

mbonnin

09/07/2020, 8:49 AM
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

shikasd

09/07/2020, 8:53 AM
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

Archie

09/07/2020, 9:00 AM
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

Giorgos Neokleous

09/07/2020, 9:08 AM
🤔 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

ahulyk

09/07/2020, 9:40 AM
amaizing 🙂
o

olonho

09/07/2020, 1:08 PM
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

gildor

09/07/2020, 1:44 PM
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
3 Views