Porting Call It Done & GoWing from SwiftUI to Jetpack Compose
Lessons from pairing SwiftUI and Jetpack Compose over a shared Rust UniFFI core across Call It Done and GoWing: what maps 1:1, what breaks, and where Android came out ahead.
When I paired SwiftUI (iOS & watchOS) with Jetpack Compose (Android & Wear OS) across Call It Done and GoWing, I expected a clean line-by-line UI translation. That illusion lasted roughly twenty-four hours.
Both apps already shared a deterministic Rust core (crates/domain + crates/mobile-core via UniFFI) for SQLite storage, priority scoring, sealed leave receipts, and hybrid logical clock phone-to-watch sync. Sharing business logic was the easy part; making the Android interface feel genuinely native — rather than an iOS app in disguise — was where the real work happened.

What maps one-to-one between SwiftUI and Compose#
Because both SwiftUI and Jetpack Compose are declarative UI frameworks driven by state, self-contained components really do translate almost verbatim:
struct TaskCard: View {
let item: TaskItem
@State private var expanded = false
var body: some View {
VStack(alignment: .leading, spacing: 12) {
Text(item.title).font(.title3.weight(.semibold))
if expanded { Text(item.note).foregroundStyle(.secondary) }
}
.onTapGesture { withAnimation(.snappy) { expanded.toggle() } }
}
}@Composable
fun TaskCard(item: TaskItem) {
var expanded by remember { mutableStateOf(false) }
Column(
verticalArrangement = Arrangement.spacedBy(12.dp),
modifier = Modifier.clickable { expanded = !expanded }.animateContentSize()
) {
Text(item.title, style = MaterialTheme.typography.titleMedium)
if (expanded) Text(item.note, color = MaterialTheme.colorScheme.onSurfaceVariant)
}
}Layout primitives (VStack/Column, HStack/Row), local state (@State/remember), and spring animations align closely enough that stateless cards took minutes to port.
Three areas you cannot translate literally#
- Navigation and system back gestures. Android users expect the edge-swipe back gesture to work everywhere — including halfway through capturing a task or editing a GoWing departure list — without losing input. Designing for that forced me to persist edits immediately through
MobileCore, which immediately improved iOS too. - Keyboard insets and text focus. Handling
imePadding()in Compose behaves differently across Samsung, Pixel, and third-party keyboards. Testing on real mid-range Android hardware caught scroll-jank bugs emulators hid completely. - Typography, touch targets, and watch ergonomics. Material 3 expects slightly taller minimum touch targets (48 dp vs. 44 pt) and different type ramp proportions; keeping iOS spacing made Android feel cramped until I rebuilt the spacing tokens per platform — and Wear OS rotary input required its own dedicated pass alongside watchOS Digital Crown support.
Where the Android version came out ahead#
- Predictive back animations. Peeking at the underlying Now card or checklist behind a detail sheet before committing to leave feels extraordinarily calm in a focus-first app.
- Glance widgets & Wear OS Data Layer ergonomics. Sharing the exact same
export_sync()/import_sync()Rust snapshot over Wear OSDataClientand Glance made background sync telemetry easy to verify across devices.
Porting a native app across platforms on top of a shared Rust core isn’t duplicate work — it’s the fastest way to expose what was never quite good enough in the original.