Daniele B
09/01/2020, 12:42 AMThomas Skovsgaard
09/01/2020, 6:27 AMdazza5000
09/01/2020, 10:43 AMJCollardBovy
09/01/2020, 12:43 PMThomas Skovsgaard
09/01/2020, 5:52 PMclass SwiftUILoginViewModel: ObservableObject {
@Published var isLoading: Bool = false
init() {
StateFlowExtension().listen(sharedViewModel.isLoading, dispatcherService: dispatcher) { newValue in
self.isLoading = newValue as? Bool ?? false
}
}
}
It would be awesome if we could use swiftUI bindings with the shared Kotlin viewModel, but for now I haven't figured out how to do it other than this way.Daniele B
09/01/2020, 7:08 PM