Using GraphQL in a KMM project with Jetpack Compose and SwiftUI
summary
Kotlin Multiplatform uses Apollo to download the Star Wars GraphQL schema, generate strongly typed Kotlin data classes and fragments, and expose a shared repository consumed by Jetpack Compose on Android and SwiftUI on iOS. Gradle and IDE plugins run codegen, the JVM main sanity checks the suspend-based repo, and Compose uses produceState to render a list that updates when GraphQL adds fields (releaseDate). Caching comes from Apollo schema download and the build supports generated Kotlin data classes for both platforms.
AI-written summary · about
chapters (7)
- 0:00Introduction and overview
- 8:17Setting up KMM project
- 13:54Building GraphQL repository
- 22:05Jetpack Compose UI implementation
- 23:07SwiftUI implementation on iOS
- 27:44Enhancing GraphQL query
- 30:25Summary and key takeaways
related talks
32mGraphQL Powered by Kotlin
32mHitchhiker's Guide to Kotlin/Compose Multiplatform samples and libraries
24mServer-Driven UI with Jetpack Compose and GraphQL
20mKotlin and GraphQL
52mBootiful GraphQL with Kotlin
46mKotlin Multiplatform Mobile for Teams
19mBootiful GraphQL with Kotlin
45mThe Adventures of Kotlin And Compose Through the Multiplatform World
