https://kotlinlang.org logo
Title
s

spierce7

11/05/2020, 6:36 PM
Can we develop any UI inside of the common layer yet between android and desktop, or is the UI only available in the platform directories currently?
a

Arkadii Ivanov

11/05/2020, 6:37 PM
According to samples, yes we can.
s

spierce7

11/05/2020, 6:41 PM
This is fantastic
🎉 4
I thought it was going to be at least a year before we saw anything like this materialize
Assuming compose for iOS (and js) ever comes out, being able to develop UI from the common layer, puts Kotlin multiplatform on the same level in terms of ease of use as Flutter and react-native.
👍 3
s

snrostov

11/05/2020, 6:56 PM
In fact, it is already working for Kotlin/JS also but only inside a single module due to Kotlin IR compiler plugin API limitations. Here is the demo: https://zal.im/h8/ We are preparing the sources of that prototype. But note that it is far from production, it’s just a proof of concept.
:kotlin-intensifies: 13
🎉 7
❤️ 1
s

suresh

11/06/2020, 8:48 PM
@snrostov thanks for the awesome work... i assume we will using the DOM elements for rendering the app instead of the flutter approach,(rendering everything on canvas) which has poor user experience ?
s

snrostov

11/08/2020, 11:10 AM
@suresh thanks for the kind of words. Yes, the prototype working on top of DOM nodes rather than canvas. However, It may be challenging to implement a common API between platforms that are working on top of pixels and DOM nodes rendering. It is unclear how it will be in the end.
👍 2