You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When use Koin on a KMP project with native ui on both android and ios.
I always use annotation, but when I use @KoinViewModel in shared code. It will not work.
I have to write di code on both android and ios like this
Android actual
viewModelOf(::ArchivedBookViewModel)
iOS actual
factoryOf(::ArchivedBookViewModel)
So is there any option to make @KoinViewModel default as @factory on Not Android Platfrom. So I do not need to write more di code. It's really easy to forget.
The text was updated successfully, but these errors were encountered:
When use Koin on a KMP project with native ui on both android and ios.
I always use annotation, but when I use @KoinViewModel in shared code. It will not work.
I have to write di code on both android and ios like this
Android actual
iOS actual
So is there any option to make @KoinViewModel default as @factory on Not Android Platfrom. So I do not need to write more di code. It's really easy to forget.
The text was updated successfully, but these errors were encountered: