fathony
08/27/2022, 5:06 AMcallbackFlow {}
in Kotlin. For example:
// Kotlin common
interface Repository {
fun location(): Flow<LatLng>
}
// Kotlin android
class AndroidRepository : Repository {
override fun location(): Flow<LatLng> =
callbackFlow {
// some implementation
}
}
How should I implements those on swift?
// Swift iOS
class IosRepository : Repository {
func location() -> // how to?
}
I'm already looking at the topics but unable to find anything that solves above issue. Am I missing something here?hfhbd
08/27/2022, 9:26 AMfathony
08/27/2022, 11:34 AM