https://kotlinlang.org logo
#ios
Title
# ios
a

aleksey.tomin

02/25/2021, 3:09 PM
r

russhwolf

02/25/2021, 5:48 PM
Broadly, the pattern of wrapping suspend and flow APIs in functions that take lambdas so they can be called from Swift is a good one. Whether you want to use that exact implementation vs a more complex one (for example to add error handling, or structured concurrency support) is up to you and your project's needs.
l

Lammert Westerhoff

02/26/2021, 11:59 AM
I do heavily since all my view model code is in Kotlin and exposed through flows. See also my answer to Gurupad’s post right above yours
2 Views