joreilly / MortyComposeKMM

GraphQL based Jetpack Compose and SwiftUI Kotlin Multiplatform project (using https://rickandmortyapi.com/graphql)
Apache License 2.0
380 stars 27 forks source link
android apollographql graphql graphql-client ios jetpack-compose kotlin kotlin-multiplatform kotlin-multiplatform-mobile kotlin-native multiplatform swift swiftui

MortyCompose

kotlin-version

Kotlin Multiplatform sample that demonstrates use of GraphQL + Jetpack Compose and SwiftUI (based on https://github.com/Dimillian/MortyUI SwiftUI project). Uses Apollo library's Kotlin Multiplatform support and is also included as one of the samples for that project.

The project also now makes use of the KMP support now provided by the Jetpack Paging library.

Related Posts:

Android App

Characters Android Screenshot

iOS App

A small SwiftUI iOS app that uses same shared Kotlin Multiplatform code is in the iosApp folder (shows Characters screen using more or less same SwiftUI code that's in https://github.com/Dimillian/MortyUI)

Characters iOS Screenshot

Full set of Kotlin Multiplatform/Compose/SwiftUI samples