{"repo":"rickclephas/KMP-ObservableViewModel","free":true,"listed":false,"github":"https://github.com/rickclephas/KMP-ObservableViewModel","clone":"git clone https://github.com/rickclephas/KMP-ObservableViewModel.git","description":"Library to use AndroidX/Kotlin ViewModels with SwiftUI","language":"Kotlin","stars":703,"topics":["combine","ios","kmm","kmp","kotlin","kotlin-multiplatform","kotlin-multiplatform-mobile","swift","swiftui","viewmodel"],"license":"MIT","category":"mobile-apps","readme_excerpt":"KMP-ObservableViewModel A library (previously known as KMM-ViewModel) that allows you to use AndroidX/Kotlin ViewModels with SwiftUI. Compatibility You can use this library in any KMP project, but not all targets support AndroidX and/or SwiftUI interop: Target Supported AndroidX SwiftUI ------------ :-----------: :--------: :-------: Android ✅ ✅ - JVM ✅ ✅ - iOS ✅ ✅ ✅ macOS ✅ ✅ ✅ tvOS ✅ - ✅ watchOS ✅ - ✅ linuxX64 ✅ ✅ - linuxArm64 ✅ - - mingwX64 ✅ - - JS ✅ - - Wasm ✅ - - The latest version of the library uses Kotlin version 2.4.10 . Compatibility versions for older and/or preview Kotlin versions are also available: Version Version suffix Kotlin Coroutines AndroidX Lifecycle --------------- ----------------- :----------: :----------: :------------------: latest no suffix 2.4.10 1.10.1 2.8.7 1.0.5 no suffix 2.4.0 1.10.1 2.8.7 1.0.4 no suffix 2.3.21 1.10.1 2.8.7 1.0.3 no suffix 2.3.20 1.10.1 2.8.7 1.0.2 no suffix 2.3.10 1.10.1 2.8.7 1.0.1 no suffix 2.3.0 1.10.1 2.8.7 1.0.0 no suffix 2.2.21 1.10.1 2.8.7 1.0.0-BETA-13 no suffix 2.2.10 1.10.1 2.8.7 1.0.0-BETA-12 no suffix 2.2.0 1.10.1 2.8.7 1.0.0-BETA-11 no suffix 2.1.21 1.10.1 2.8.7 1.0.0-BETA-9 no suffix 2.1.10 1.10.1 2.8.7 1.0.0-BETA-8 no suffix 2.1.0 1.9.0 2.8.4 1.0.0-BETA-7 no suffix 2.0.21 1.9.0 2.8.4 1.0.0-BETA-4 no suffix 2.0.10 1.8.1 2.8.4 1.0.0-BETA-3 no suffix 2.0.0 1.8.1 2.8.0 Kotlin Add the library to your shared Kotlin module and opt-in to the ExperimentalForeignApi : And create your ViewModels: As you might notice it i","default_branch":null,"files":null,"tree":[],"storefront":"/r/rickclephas","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/rickclephas/KMP-ObservableViewModel/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}