thank you. But this does not talk about how to use the WhileSubscribed method?
f
François
03/05/2025, 7:49 PM
If you want to respect the lifecycle, you must wrap the KMP viewmodel inside SwiftUI ObservableObject class. Then you can use your KMP ViewModel as you want.