Kotlin Multiplatform, from the compiler up · check

Know Sharing the UI already?

One question for each of the 3 puzzles in this module. A right answer marks that puzzle as passed, so you can jump ahead. A wrong one tells you which puzzle to start with. Nothing is sent anywhere: it's saved in this browser.

Puzzle 13: Compose in one puzzle

The name passed to Greeting changes. What makes the text update?

Right. Data changes, functions run again.

Not quite. Only the affected functions run again; nothing is recreated. Learn it in puzzle 13 →

Not quite. You keep no Text object to set; you describe, Compose redraws. Learn it in puzzle 13 →

Puzzle 14: What Compose actually shares

Your app targets Android and iOS with Compose Multiplatform. Which build of material3 does the Android app use?

Right. Android gets Google's artifacts.

Not quite. material3 is available from common code on all targets. Learn it in puzzle 14 →

Not quite. On Android the build switches to Google's artifacts; JetBrains' builds are for the other targets. Learn it in puzzle 14 →

Puzzle 15: One canvas on iOS

Your Compose screen on iOS has a Column with a Button. What does UIKit see?

Right. One view, drawn by Compose.

Not quite. UIKit still runs the app; Compose lives inside one of its screens. Learn it in puzzle 15 →

Not quite. Compose doesn't create UIKit objects for composables; it draws them itself. Learn it in puzzle 15 →

Back to the overview →