I am finally publishing a
sample on Github for the
D-KMP architecture.
These are the characteristics:
• it uses
JetpackCompose for
Android and
SwiftUI for
iOS
• it
fully shares the ViewModel (and the
DataLayer) via
Kotlin MultiPlatform
• it provides 2 types of functions to the UI layer:
Event functions and
StateProvider functions
• it implements the
MVI pattern and the
unidirectional data flow
• it uses Kotlin’s
StateFlow for the multi-platform observable mechanism
Any feedback is very welcome!
https://twitter.com/dbaroncellimob/status/1373267068414529536