Flows in SwiftUI (preview) - Hot Flow #112
Unanswered
carlosmonzon
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi
I was playing with Flows in SwiftUI and try to have a similar behaviour on android and iOS.
I created a simple ViewModel with the following code.
And collecting using
Observing
on iOSOn android, when resuming the app, the flow still active and emitting values and when the app is active again, the UI gets the latest values.
On iOS I am having a different behaviour, the flow stops emitting values while the app is in the background and start active again in the foreground.
Is this an intended behaviour? - It is worth mentioning that in this test I am using androidx viewmodel exposed on iOS.
Beta Was this translation helpful? Give feedback.
All reactions