Upgrade to Pro — share decks privately, control downloads, hide ads and more …

KMM with jetpack compose and SwiftUI

KMM with jetpack compose and SwiftUI

Karan Dhillon

May 12, 2021
Tweet

More Decks by Karan Dhillon

Other Decks in Education

Transcript

  1. Karan Dhillon, 12 May 2021 KMM with Jetpack Compose and

    Swift UI Build declarative UIs with maximum code sharing
  2. • KMM - Kotlin Multiplatform Mobile • Jetpack Compose -

    Android’s modern toolkit for building native UI • SwiftUI - UI toolkit by Apple to design apps in a declarative manner
  3. Important bits A Kotlin Mobile Multiplatform project consists of three

    components: • Shared module • Android application • iOS application
  4. Goal : create a facade over networking and cache service

    First, lets take care of networking
  5. By default, SQLDelight plugin reads .sq files from the sqldelight

    folder We create the package specified in the packageName parameter Inside it, we create the .sq file with the name of our database
  6. Pros (and Cons?) • Maximum code sharing • Expect/Actual pattern

    • Concurrency in Kotlin/Native • Single framework for shared module