RunLog code

Stage 1 + 2 Swift files, ready to drop into the RunLog Xcode project. Open this page on the Mac, download, then drag the files into Xcode.

Download all files (zip) Screen mockup

Updated 2026-11-29 11:27 (Singapore time). If this time is older than expected, the latest deploy hasn’t gone live yet: reload the page.

ContentView.swift

Replaces Xcode’s file

First screen: decides between welcome, loading, runs list, or a problem message. 138 lines

Download

RunListView.swift

New file

Runs list grouped by month, the welcome screen, and the “no runs found” screen. 181 lines

Download

RunDetailView.swift

New file

One run: route map, big distance, stats grid (pace, heart rate, cadence…). 260 lines

Download

Models.swift

New file

RunLog’s own simple data shapes: Run, RoutePoint, RunDetails. 52 lines

Download

Formatters.swift

New file

Pace / time / distance text and the cadence + pace maths. 62 lines

Download

WorkoutSource.swift

New file

The data-source rules, plus sample runs used only in the simulator. 98 lines

Download

HealthKitWorkoutSource.swift

New file

Reads your real runs, routes and steps from Apple Health (read-only). 126 lines

Download