Hi, I'm working with jetpack compose for a couple ...
# compose-ios
y
Hi, I'm working with jetpack compose for a couple of months and already have a commercial android app. I wonder if it is realistic at this stage to have an ios and android compose multi platform app which is based on MVVM for example using design patterns like dependency injection for example.
👍 1
d
The best approach with Compose is to use unidirectional data flow. MVVM may be used as well as MVI with Compose. One of possible solutions you can find here: https://github.com/icerockdev/moko-mvvm. You can try to do it yourself as well. Dependency Injection frameworks also may be used, for example: https://insert-koin.io/
y
So Hilt&Dagger is not an option for compose multi platform (Android & iOS)?
I have an existing project written in jetpack compose and I'm trying to understand if it is realistic to create a multiplatform project out of it or use my source code in a new multiplatform project.
d
Better to start from the template and experiment a little bit with it. https://github.com/JetBrains/compose-multiplatform-ios-android-template