Peter Kucera
02/25/2021, 2:29 PMrusshwolf
02/25/2021, 5:41 PMwhen
in Kotlin and pass lambdas from Swift for the Kotlin to trigger. KaMPKit does that for example here: https://github.com/touchlab/KaMPKit/blob/master/shared/src/iosMain/kotlin/co/touchlab/kampkit/NativeViewModel.kt#L53-L70
More generally, I would avoid trying too hard to force Swift to do things in a Kotlin style. Swift is its own language and the Swift and iOS communities have patterns and best practices for what works well in that code.Paul Woitaschek
02/27/2021, 6:30 AM