~/talk

KMM survival guide: how to tackle everyday struggles between Kotlin and Swift

Talkat droidcon Italy 2022 · 2022-10-06..10-07· [kotlin]
links:none on file
slides:none on file

Kotlin Multiplatform Mobile (KMM) is alpha but already shares business logic while compiling a shared module into an XCFramework and revealing specific failures: Objective‑C bridging drops generics and inline/value classes, suspending functions arrive on iOS as callbacks losing nullability, and Result and default parameters vanish. Workarounds include converting to platform enums or using IceRock plugin to generate enums, applying KMP native coroutines for suspending APIs, enabling JetBrains new memory model (e.g. 1.6.20), and publishing libraries as Swift Packages; practical but imperfect.

AI-written summary · about

  1. 0:00Start
  2. 2:20How does it work?
  3. 3:51Reality
  4. 5:21Primitive types
  5. 6:57Sealed classes
  6. 8:44Generic sealed class
  7. 10:43Generics and sealed class
  8. 13:45Inline class
  9. 16:27Coroutines
  10. 22:41Default parameters
  11. 23:39Exception handling
  12. 25:43Third-party libraries
  13. 31:23The future
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.