ahulyk

    ahulyk

    2 years ago
    Will Compose support multiplatform? Any info on that?
    mbonnin

    mbonnin

    2 years ago
    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
    Mehdi Haghgoo

    Mehdi Haghgoo

    2 years ago
    How is it possible? Isn't Compose a native UI framework?
    mbonnin

    mbonnin

    2 years ago
    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
    shikasd

    shikasd

    2 years ago
    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.
    Archie

    Archie

    2 years ago
    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?
    Giorgos Neokleous

    Giorgos Neokleous

    2 years ago
    🤔 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
    ahulyk

    ahulyk

    2 years ago
    amaizing 🙂
    olonho

    olonho

    2 years ago
    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.
    gildor

    gildor

    2 years ago
    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