Overview of PreCompose
masterPreCompose is a Compose Multiplatform library providing Navigation, ViewModel, and Lifecycle components. It is inspired by Android Jetpack's Navigation, ViewModel, and Lifecycle libraries, but is written in pure Kotlin for Kotlin Multiplatform (KMP) compatibility.
Key benefits include:
- Write Once, Run Anywhere: Business logic and UI code can be written in
commonMainfor Android, iOS, JVM, macOS, and Web. - Familiar API: If you are familiar with Jetpack components, the API surface is nearly identical.
- Managed Lifecycle: PreCompose handles lifecycle management automatically.
- Integrations: Supports Molecule for business logic and Koin for dependency injection.