0Pricing
Kotlin Multiplatform Academy · Lesson

Decide What Stays Native

Draw pragmatic lines between shared and platform UI.

Decide What Stays Native is a free Kotlin Multiplatform Academy lesson on CoddyKit — lesson 4 of 4. You can read the complete lesson below for free — then practise it hands-on in the browser with a built-in code editor and a 24/7 AI tutor. It is part of the Kotlin Multiplatform Academy learning path, one of 4 lessons in the course, and your progress syncs across the web and the CoddyKit app.

Share Smart, Not Everything

KMP rewards sharing logic, but not every line should move. The real skill is deciding what goes shared and what stays comfortably native.

Logic Loves Shared

Calculations, validation, networking and parsing belong in shared code. They behave identically everywhere, so writing them twice only invites drift.

UI Can Stay Native

A polished, platform-true interface is often worth writing twice. Jetpack Compose and SwiftUI let each app feel native while sharing the brains beneath.

Presentation Is a Choice

ViewModels and state can be shared, yet many teams keep presentation native for flexibility. It is a deliberate trade, not a rule carved in stone.

Lean on the Platform

Cameras, sensors, biometrics and deep OS features are easiest in native code. Wrap them behind expect/actual when shared code must reach them.

Watch the Bridge Cost

Crossing the Kotlin-to-Swift bridge has friction. If exposing something shared makes the Swift side ugly, leaving it native can be the kinder call.

Follow the Stability

Mature pieces, like core logic, are safe to share. For areas still evolving, such as cutting-edge UI, staying native avoids fighting young tooling.

Team Skills Matter

If your iOS team loves SwiftUI, forcing shared UI may slow them. Honest team preferences are a legitimate input to the share-or-not decision.

A Simple Heuristic

Ask one question: would this behave the same on every platform? If yes, share it. If it is about feel, hardware or look, lean native.

You Can Move the Line

The boundary is not permanent. Start native, then promote stable code into commonMain later. KMP lets the share line shift as confidence grows.

Pragmatism Wins

There is no purity prize for sharing one hundred percent. The best KMP apps share what truly benefits and stay pragmatic about the rest. 🙂

Quick Check

Which kind of code is the strongest candidate to keep native?

Recap

You learned to share logic, models and networking while keeping UI and hardware native, using a simple heuristic and shifting the line as confidence grows. 🎉

Frequently asked questions

Is the “Decide What Stays Native” lesson free?

Yes — the full text of “Decide What Stays Native” is free to read here on the web, and the Kotlin Multiplatform Academy course includes 4 lessons in total. To practise it interactively (a built-in code editor and a 24/7 AI tutor) and unlock the rest of the Kotlin Multiplatform Academy course, upgrade to CoddyKit PRO.

What will I learn in “Decide What Stays Native”?

Draw pragmatic lines between shared and platform UI. You practise Kotlin Multiplatform Academy with hands-on code you run directly in the browser, and a 24/7 AI tutor answers your questions as you work through the lesson.

Do I need any experience to start Kotlin Multiplatform Academy?

No prior experience is required. Kotlin Multiplatform Academy on CoddyKit is structured for beginners through advanced learners; this is — lesson 4 of 4, so you can start here or from the beginning and move at your own pace.

How long does the “Decide What Stays Native” lesson take?

Most CoddyKit lessons take about 5–10 minutes. Each one is bite-sized and interactive, so you make steady progress and pick up exactly where you left off across the web and the app.

Can I write and run code in this Kotlin Multiplatform Academy lesson?

Yes. Every Kotlin Multiplatform Academy lesson includes a built-in code editor, so you write and run real code right in your browser and get instant AI feedback — no local setup required.

All lessons in this course

  1. Layered Architecture for KMP
  2. Use Cases & Domain Boundaries
  3. Split Shared Code into Modules
  4. Decide What Stays Native
← Back to Kotlin Multiplatform Academy