Daniele B
09/14/2020, 9:37 PMcommonMain
) looks like this:
class CoreViewModel {
internal val mutableStateFlow = MutableStateFlow(AppState())
val stateFlow: StateFlow<AppState>
get() = mutableStateFlow
}
Can anyone show how it’s possible to collect the StateFlow
value in Swift, on the iosApp side?
I am looking for a way to connect the StateFlow value to an ObservableObject.Daniele B
09/16/2020, 4:54 PM