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

SrSouza

05/15/2019, 9:58 PM
Hi guys, the Jetpack Compose write their components pixel by pixel using Canvas (if i'm correctly), I was wondering if is possible to write the Canvas in other platform, like Kotlin Native targeting iOS, and use the already created components of Jetpack Compose. I know that this is not the goal of the project, but, it's possible?
f

Fudge

05/15/2019, 10:06 PM
I'm not involved in the development, but it seems like the answer is "in the future probably yes but not for a long time".
You're certainly not the first with that thought 🙂
g

gaetan

05/15/2019, 10:10 PM
Yes, it’s possible. We do it in our dataviz library. We don’t have the iOS implementation yet but already use common Kotlin code to render viz using canvas on Android, JS, and JavaFx.
2 Views