Does anyone have/know of a project that targets bo...
# multiplatform
s
Does anyone have/know of a project that targets both Android and macOS and has a GUI? It'd be nice to have a reference.
u
Nope. But there were some interesting experiments with kotlin + flutter as cross-platform ui: https://habr.com/ru/post/437176/ (rus). Can sound as overenginerring though
k
I would not recommend trying to create your GUI in a kotlin MPP. it's not designed for that purpose.
i managed to create a simple screen in a kotlin MPP and even that was not a great experience.
now, maybe kotlin + flutter might be something worth trying
😿 1
s
@Kris Wong do you instead recommend to only share code with macOS?
k
logic and interfaces are great to share
1
j
Yes KN is generally better used as a lib for logic. Flutter is a full stack framework. KN fits well into a clean arch style project
s
actually wait I was half asleep and I just realized that is not what I intended to ask/say: I'm not trying to build my GUI in Kotlin.
I am instead looking for projects that have UI written with AppKit and are sharing code with Kotlin.
Most of the tutorials are targeting iOS because that seems like the primary usecase.
u
s
Interesting. Does JavaFx also run on macOS?
u
sure
j
Key advantage of KN is ability to use integration with platform SDKs. This enables using native SDKs. Using a cross platform UI (Flutter, JavaFX) + KN will work but seems defeatist
s
right
u
Late update: there is an attempt to write multiplatform UI widgets set: https://github.com/icerockdev/moko-widgets