3 ms·
KMM has two ways to do UI. You can do it natively and use Kotlin only for shared business logic (it inter-ops with Swift/Objective C). Or, you can take the new
by mike_hearn 2y ago
KMM has two ways to do UI. You can do it natively and use Kotlin only for shared business logic (it inter-ops with Swift/Objective C). Or, you can take the new Android UI toolkit (Jetpack Compose) and it use it on desktop/iOS/web as well, for your whole app.
- mdhb 2y agoDart also has native interop with Swift, Objective C, Rust, C, Java, Kotlin and JavaScript. It also has more compile targets as far as I am aware too. On top of the standard web, iOS, macOS, windows and Linux across all the standard chipsets plus emerging ones like RISC-V plus it also has support for WASM. I don’t know of anyone with that level of cross platform and cross language interop out there currently which is also something you would want to write significant business logic or UI in.
- mwcampbell 2y agoStill, for cross-platform mobile and desktop apps, the Dart website recommends Flutter with no qualifications, and Flutter only covers the approach of a single cross-platform UI, as opposed to native UI with a cross-platform backend. The fact that Kotlin officially supports the second option makes it more appealing to me.