2

I am new in Kmm I have create a UI with Jetpack compose for android and swift ui for IOS in simple application in kmm, so in shared module I just want to create viewModels for both android and iOS activities but I don't find any proper solution for this.

Ahmad Bhatti
  • 189
  • 1
  • 8
  • In KMM the viewmodel would not be common for both the app as this is the part of the presentation layer but you can create common use case, domin and data layer – Kiran Choudhary Oct 07 '22 at 12:32

1 Answers1

1

Had tried with this library to https://github.com/icerockdev/moko-mvvm to achieve Clean MVVM in KMM project

  • While this link may answer the question, it is better to include the essential parts of the answer here and provide the link for reference. Link-only answers can become invalid if the linked page changes. - [From Review](/review/late-answers/33152499) – Alex Romanov Nov 15 '22 at 15:55