. I copied it and have a working app and i have it working with Flows (just like him)
I started watching this
video today▾
(thats also pretty recent) and it says Flows aren't really well supported. Seems like they worked just fine in that saample from Sebastian. What am I missing?
👍 1
a
Arkadii Ivanov
08/06/2023, 4:41 PM
Perhaps, they mean that currently Flow's interop with Swift is not as good as it could be. E.g. Flow is an interface, and so its generic type gets lost when going through ObjC. Also calling suspend functions is not so straightforward.
👆 1
c
Colton Idle
08/06/2023, 4:44 PM
cool. but if im trying to build a (as close to) 100% only kotlin codebase I should be good it seems since im not treally trying to do any swift interop if possible.
a
Arkadii Ivanov
08/06/2023, 4:51 PM
I think so, unless I'm missing something.
👍 1
c
Colton Idle
08/06/2023, 5:30 PM
thanks. yeah it seems like a lot of the "cons" of kmp go away if i just use it everywhere (which i have a greenfield poc) so it seems like i should be able to use all of my favorite things about kotlin (specifically coroutines) 😅
Thanks arkadii
K 2
➕ 1
t
tylerwilson
08/06/2023, 6:30 PM
The KMP NativeCoroutines package library makes this much cleaner on both sides- KMP and Swift. Options include RxSwift, Combine and Asynchrony