Peter Kucera02/25/2021, 2:29 PM
russhwolf02/25/2021, 5:41 PM
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 Woitaschek02/27/2021, 6:30 AM