Hello, I am creating same composable UI for both Android and iOS. I also want to have the same view-model, that why both UI and view-model logic is only one for both platforms. As I understand this library would be the correct approach? I have not found any information on GitHub repo, however, I found in some video that I could use
getViewModel
. This, however, requires to create an instance of view-model - what If I have some dependencies in my view-model that should be injected (by Koin). Is this correct thinking of mine or it's not quite possible to have same UI and view-model for Android and iOS? Thanks.
a
alex009
08/18/2023, 8:10 AM
yes you can use moko-mvvm. to better handle of lifecycle on each platfroms you should use