Hey! Question regarding Data Binding/Flow. How d...
# multiplatform
a
Hey! Question regarding Data Binding/Flow. How do you usually handle that in KMM Project? For using Kotlin’s Flow type for example, we need to implement wrappers. Currently I am playing around with https://johnoreilly.dev/posts/kotlinmultiplatform-swift-combine_publisher-flow/. What about normal
suspend
functions? I’ve noticed you can call
suspend/async
Kotlin function inside Swift, and it is compiled into a completion closure. One downside I see there, is
nullability
and would be nice to have
Swift's Result
type in it for example. Any best practices regarding data flow in KMM project? 🙏
j
Note that the following has emerged since I wrote that article and definitely recommend taking a look at it https://github.com/rickclephas/KMP-NativeCoroutines
👍🏻 1
a
Hey @John O'Reilly! Came across this library few days ago. I’ll definitely check this one out again, and give it a shot. Thank you for your recommendation and your amazing blog posts! 💪
👍 1