In this quick tutorial we'll build a simple system for navigating between composable screens in a Kotlin Multiplatform project, utilizing a shared Compose UI. This navigation system can be shared between Android, iOS, and Desktop apps. This lesson assumes you have a basic understanding of Kotlin and Jetpack Compose.
Simple-Navigation-CMP Repository:
[ Ссылка ]
Empty Project Folder, generated with KMP Wizard (Select the three dots and choose download):
[ Ссылка ]
If you're having trouble setting up your project, I have a step-by-step video to walk you through the process: [ Ссылка ]
Additional resources:
Android ViewModel for Compose Multiplatform:
[ Ссылка ]
MOKO MVVM Architecture Components:
[ Ссылка ]
Follow me on LinkedIn!
[ Ссылка ]
Chapters:
0:00 - Intro
0:22 - Defining The Sealed Interface
1:36 - Building The Nav Controller
5:42 - Composable Screens
6:22 - Setup NavController In App
8:39 - Running The App
9:08 - Closing Thoughts
![](https://i.ytimg.com/vi/aiQyJqhAE2I/maxresdefault.jpg)