Digital product

BikeComp

A cycling computer for my iPhone, readable in a glance and paired with my Garmin.

Three iPhones running BikeComp on a dark background. In front, the main ride page: a big speed of 32.4 km/h, then heart rate 146 in zone 3, power 238 marked est., distance 42.18 km, average speed 29.8, ride time 1:24:36 and 214 m of climbing, with Lock, Lap, Pause and Hold to end buttons. Behind it, the Map page in 3D with a left turn in 350 m onto Harlem Hill, and a page of graphs for power, heart rate, its zone and cadence.

At a glance

Role
Product owner and designer, building with Claude Code
Team
Solo, with Claude Code writing the code
Tools
SwiftUI, SwiftData, MapKit, HealthKit, Garmin Connect IQ, Firebase, OpenRouteService, MapLibre, Cloudflare Workers, Claude Code
Timeline
October 2026
Status
In development: installed on my iPhone and Garmin, with rides on my own bike next. For my own use, so not in the App Store

What it shows

  • Designing for a glance: readable in under a second, with gloves on and in sunlight
  • A phone and a watch working together, each number from its best source
  • Honest data: estimates labelled, gaps shown as gaps
  • Battery treated as a design constraint, and measured
  • Building to a platform's rules: Strava's API agreement and brand guidelines
  • Directing an AI build: spec, product plan, design review, phased delivery

Highlights

  • 127 screens designed and built in SwiftUI
  • 395 automated tests
  • 11 build phases, from heart rate to Garmin Connect

Discover

BikeComp turns my iPhone into a cycling computer. It shows the ride as big numbers on pages I set up myself. It plans routes, speaks turn-by-turn directions, controls music and estimates power when there’s no power meter. It also links to the Garmin Forerunner I wear, so the watch keeps recording while the phone shows its data.

It’s for one rider: me. It runs on Apple’s free developer account and isn’t in the App Store.

The cycling apps I tried kept their full features behind subscriptions, and none linked live to my Garmin. I knew how to build one, so I did.

Each phase ran through the same loop:

  1. Spec and planWhat the phase delivers, against the product principles
  2. My directionMy decision on each open question
  3. BuildClaude Code wrote the code and its tests
  4. Simulator checkFake GPS rides, every screen photographed
  5. CommitOne commit per phase

7 steps · 3 reworks · 1 milestone

  • Step
  • Rework: went back and changed something
  • Milestone
  1. 1Discover2 steps
  2. 2Define1 rework
  3. 3Design1 step · 1 rework
  4. 4Deliver4 steps · 1 rework
  5. 5Outcome1 milestone
  1. 1DiscoverEarly October 2026

    1. Step 01

      A spec

      A battery-efficient iPhone cycling computer for one rider, with only two outside code libraries allowed.

      Reworked later in03

    2. Step 028 October

      Phase 1: heart rate from the watch

      Testing found the watch only sends heart rate while its phone link is off.

      Reworked later in08

  2. 2Define8 October

    1. Rework 03

      From a prototype to a finished product

      Back to 01: A spec

      A product plan with every screen and state designed, seven principles, and rides synced to my own account.

      Why: Phase 1’s bare heart-rate screen showed a working prototype wasn’t enough.

      Reworked later in04

  3. 3Design8 October

    1. Rework 04

      Designed in SwiftUI instead of Figma

      Back to 03: From a prototype to a finished product

      Screens were built straight in SwiftUI, with a gallery that shows each one with sample data.

      Why: Figma’s free plan allows the AI connector only 20 calls a month, and they ran out mid-design.

    2. Step 05

      Design review

      Every screen on one review page. I approved it and asked for Garmin-style graph fields.

  4. 4Deliver8 October

    1. Step 06

      Recording, accounts and analysis

      Ride recording with crash recovery, accounts, custom pages, the power estimate and ride analysis.

    2. Step 07

      Routes, navigation and music

      A route planner, spoken turn-by-turn directions, GPX import and music controls.

    3. Rework 08

      A watch link that keeps the Garmin recording

      Back to 02: Phase 1: heart rate from the watch

      BikeComp Link, a Garmin data field, sends the watch’s data to the phone every second.

      Why: I wanted to keep recording my rides on the Garmin as usual.

    4. Step 09

      Research, then Phase 8

      Research led to three ride modes, earbud heart rate, 75 Garmin models and offline maps.

    5. Step 10

      Pages on a grid and a 3D map

      Any widget at any size, a smart turn widget and a map that tilts like a sat-nav.

  5. 5Outcome8 October

    1. Milestone 11

      Ready for the bike

      All nine phases built and tested in the simulator. Real rides come next.

Define

Before any design started, the product plan set seven principles. Every screen was checked against them.

  • Readable in under a secondOne number per field: huge and white, with a small label and unit.
  • Works with gloves, rain and bumpsRide buttons are at least 64 points, against Apple’s minimum of 44. Ending a ride needs a press and hold.
  • Readable in sunlightWhite numbers on true black. Colour never carries meaning on its own.
  • Nothing is ever lostThe ride saves as it records, and a crash offers to recover it.
  • Honest dataEstimates are labelled est. Gaps stay gaps.
  • Battery is a featureOnce-a-second updates, a black interface, and a live map only on the Map page.
  • Native iOSSystem components, haptics at key moments and VoiceOver labels throughout.

It also had hard limits:

  • Apple’s free developer account. The app must be reinstalled every seven days, and iCloud and push notifications aren’t available.
  • An iPhone 16. No always-on display, and the screen is the biggest battery drain.
  • Three outside code libraries. Spotify’s, Garmin’s and, later, MapLibre’s for offline maps. Nothing else.
  • The watch. It only broadcasts heart rate with its phone link off, and a Garmin data field has little memory.
  • Strava’s rules. Since June 2026 an app can only upload with a Strava subscription, and its secret key must never be on the phone.

Design

Designed for a glance

The ride screen is true black, so the phone’s OLED pixels stay off, with white numbers. Each kind of metric has its own label colour: blue for speed, red for heart rate, orange for power, green for climbing, purple for cadence.

The main page. Simulator screenshot, sample ride.
  1. Colour says what kind of number. Labels are coloured; the numbers stay white.

  2. One huge number per field. Speed gets the top two rows.

  3. Zones carry a number. Zone 3 is green and also says Z3.

  4. Estimates say so. Without a power meter, power is always marked est.

  5. Status across the top. Recording, the voice, GPS, heart rate and battery.

  6. Pages to swipe. Standard pages, or my own on a 5 × 5 grid.

  7. A deliberate end. Ending a ride takes a one-second hold, so a bump can’t end it.

Pausing, locking, losing heart rate, finishing a lap and ending a ride each have a clear state. The data stays visible behind every message.

Pages you set up yourself

Everyone starts with standard pages, ready to ride. Beyond those, ride pages are a grid where any widget goes anywhere at any size. At the design review I asked for Garmin-style graph fields, so power and heart-rate graphs sit alongside the numbers.

The grid started at 3 × 4; I later asked for 5 × 5. One column is then only about 75 points wide. So every widget was photographed at every size, and whatever didn’t read was fixed. Labels shorten (“AVG HR”) and a narrow ride time reads “1h24”. Eight widgets that repeated something else were removed.

Every widget was then photographed at every size it can take and reviewed. A full-row number is now 80 pt beside its label rather than 45 pt under it, labels and units grow with the number, two-column cells carry the unit in the header so the number keeps its size, and graphs, the smart turn and the Target time grow with their cell.

I also wanted the next turn without a whole map on the page. The smart turn widget shows the arrow, distance and road. It flashes as the turn comes up, then opens a close-up map near the junction.

Buttons where your thumbs are

With hands on the bars, a thumb reaches the side of the screen more easily than the bottom. So the ride buttons can sit stacked in a bottom corner, leaving the top of the page full width. They can also tuck behind one glass button, giving the data the whole screen. Music is one of the buttons.

Three ride modes

Before a ride, I choose how the app spends the battery. All three modes record the same data. Standard keeps everything live. Battery Saving dims the screen after ten seconds and brightens it for turns. Ultra Battery Saving lets the screen sleep, and the phone wakes itself before every turn. Each mode estimates how long the phone and Garmin will last, learning from my own rides.

Planning a route, then following it

Routes are planned on the phone by tapping the map, or by asking for a loop of a given length. OpenRouteService picks bike-friendly roads. Komoot routes come in as GPX files.

The map answers two questions at a glance: where am I, and where does the route go? It tilts in 3D like a sat-nav and closes in as a turn comes up. Near a junction, a bold arrow shows the turn. Gravel and cobbles are dashed on the map, with a warning about 30 seconds before each.

A review of the app’s experience found the voice was its weakest part. It read the router’s text aloud and called every change of street name like a turn. So BikeComp now writes its own short directions: “In 100 metres, turn left onto Harlem Hill”, then “Left now.” Calls are timed by my speed. A missed turn is noticed within a few seconds (“Wrong way. The route turned left back there.”).

The voice now knows the route as well as its turns. It calls a climb at its start and at its top, a sharp bend at the bottom of a descent, a busy road, steps, a cycle path ending, halfway and the last kilometre, each once. A turn onto an unnamed way says what it is (“onto the cycleway”). On a page without a turn widget, the next turn arrives as a card under the status bar about 15 seconds out, and the page squeezes down beneath it so no number is covered.

Apple doesn’t let apps download its maps. So the Map page can also use MapLibre, an open map engine, and the map along a route can be downloaded for riding without signal.

I wanted ride times based on my own riding. BikeComp learns my speed on descents, flats and climbs from my last 20 outdoor rides, and times each route by its hills. On a ride, it compares today’s pace with my usual one (“1 min slower today”).

A route can also be ridden to a time, such as finishing in 1:15. A Target time widget compares the time left with what BikeComp predicts, including the hills still ahead. So a late climb can’t hide, as it would with a plain average-speed target.

Routes rarely start at my door. When I press Start away from a route, BikeComp offers directions to its start, or to join it where I am.

What the second ride taught

The second ride on the bike found three things the simulator couldn’t. Heart rate from the Garmin stopped two minutes in and never came back; a cycle path 15–20 m from the road kept setting off “off route”; and on the full-page map a swipe panned the map instead of turning the page. Each got a fix the same day. If the watch’s messages stop for ten seconds, BikeComp re-opens the link, and again every twenty seconds until they return, holding heart rate through short gaps. Every ride now keeps a timeline of what happened to the watch link, the GPS and the phone, shown on the ride’s page, so the next dropout is explained rather than guessed. Within 120 m of the route and heading its way, I count as on it: no alarm, no reroute, turns still called; a wrong way now needs me to be getting further from the route, so a wandering path can’t trip it. And the map only zooms while it follows me, so a swipe turns the page; a Look around button frees it to pan for twenty seconds. Speed, heart rate and gradient sit down the map’s right side, each changeable with a press and hold.

Before and after a ride

Before a ride, the Ride tab checks everything in plain language. Afterwards, the ride is summarised with the route coloured by heart-rate zone.

First launch

Six short steps set the app up. Each permission is explained before iOS asks. Saying no shows what won’t work, with a way to Settings.

Readable in the sun

In full sun, glare cuts even a bright phone to about 2:1 contrast. An app can’t read the iPhone’s light sensor, but with Auto-Brightness on, screen brightness follows the light. So when brightness is near full, the ride screen switches to high-contrast colours. Grey text goes from about 6:1 to 12:1 contrast against black.

Deliver

Nine phases

Each phase was planned, built, checked in the simulator and committed before the next began. Anything that needed me, such as accounts and keys, went on one list for the end.

  1. Heart rate: a Bluetooth link to the watch.
  2. Recording: GPS, auto-pause, laps, crash recovery and accounts.
  3. Pages and power: custom pages, the power estimate, ride analysis and trends.
  4. Routes: the planner, navigation and GPX import.
  5. Music: Apple Music and Spotify.
  6. The Garmin link: a data field on the watch and a bridge on the phone.
  7. Apple Health and polish: onboarding and a battery review.
  8. Ride modes, earbuds and offline maps: then Strava upload and a full accessibility audit.
  9. Pages and maps: the 5 × 5 grid, the smart turn, the 3D map and ride times learned from my rides.
  10. The review’s phases: nineteen fixes, directions in BikeComp’s own words, riding a route to a time, and a voice that knows the route’s climbs, bends and busy roads.
  11. After the second ride: a watch link that re-opens itself, a diagnostics timeline, no alarms beside the route, swipes over the map, Garmin Connect, the ride page regrouped, and every widget sized to its cell.

The phone and the watch, together

I wanted to keep recording my rides on the Garmin as normal. So BikeComp Link, a small Garmin data field, runs inside the watch’s own Bike activity. Once a second it sends the phone heart rate, power, speed and things only the watch knows, such as Body Battery and Di2 gears.

On the Garmin

  • The Bike activityRecords the ride as usual
  • BikeComp LinkSends the watch’s numbers once a second

On the iPhone

  • Best source per numberBluetooth sensors first, then the watch; never an average
  • Filling GPS gapsThe watch’s distance and speed carry on
  • A distance cross-checkHow closely the phone and watch agreed
  • GPS from the GarminIn the saving modes, so the phone's GPS can rest

After the ride

  • Apple HealthAn outdoor cycling workout with the route
  • My accountBacked up to Firebase
  • ExportGPX and TCX files, without estimated power

A later version lets the watch’s Start, Stop, Lap and Save buttons run the ride in BikeComp too. It also passes on Garmin’s weather and my heart-rate zones.

Each number comes from its best source, never an average of two devices. Averaging a good reading with a worse one only makes it worse. BikeComp Link builds for 75 Garmin models, and heart rate can also come from a strap or earbuds.

Garmin Connect

In October 2026 Garmin opened a personal, read-only API, so BikeComp can now read my own Garmin data with a key I make on connect.garmin.com and paste into the app, kept in the Keychain like the routing key. The watch records the whole ride itself, so after a ride BikeComp finds the matching activity once the watch has synced, reads its recording and fills any seconds that have no heart rate, cadence or measured power; its own readings are never replaced. Rides recorded on the Garmin that BikeComp doesn’t have can be imported with their route, heart rate and power, which teaches the ride time estimate my pace at once and counts them in records and trends. And the Ride tab shows last night’s sleep, Body Battery, resting heart rate and HRV. Nothing goes the other way: the personal tier can’t put routes or workouts on the watch. The FIT and ZIP readers are BikeComp’s own, tested with made-up files, and real replies never go into tests or into Claude.

Honest numbers

Without a power meter, power comes from a physics model using speed, gradient and my weight. It’s always marked est., and kept out of exports and Apple Health. The same goes for an optional cadence estimate from the phone’s motion sensors. Lost GPS or a dropped sensor shows as a gap. Every ride ends with a plain note on its data quality.

Strava, by its rules

For Strava upload, following the platform’s rules exactly was the brief. I checked Strava’s API agreement, API policy and brand guidelines line by line:

  • The secret stays off the phone. A tiny Cloudflare Worker holds Strava’s secret key and only handles sign-ins.
  • Consent first. Before connecting, the app says exactly what’s sent, what’s kept and how to delete it.
  • Only what’s allowed. Upload records are kept for seven days at most.
  • Only real measurements. Estimated power and cadence never go up.
  • No AI near Strava data. Strava’s policy bans it, so the code is tested with made-up replies only.

Sun, lights and heat

I asked whether the phone’s camera or light sensors could help. Research ruled out most ideas, such as cadence from the camera. What it found instead:

  • Lights. Twenty minutes before sunset, and at sunset, the screen and voice remind me to switch lights on, as Australian road rules require.
  • Heat. A phone in full sun gets hot, and iOS then dims the screen. BikeComp warns first and moves the map less often.
  • Gloves. The iPhone’s Action Button turns to the next page of data, without touching the screen.

Battery

A battery review found a hidden cost. During a ride, the tabs behind the ride screen redrew 26 times in 25 seconds, rebuilding every ride’s statistics each time. After the fix, they don’t redraw until the ride ends. Every ride now saves its mode and battery use, so the estimates become my own.

Testing

  • Automated tests for the power estimate, navigation, spoken directions, target times, exports, Apple Health and Strava.
  • Simulated rides with fake GPS around Central Park.
  • Every screen photographed at the iPhone 16’s size and reviewed on one page.
  • Every widget at every size on the 5 × 5 grid: a review of all 44 widgets at 24 sizes, then numbers that fill their row, labels and units that grow with the number, and graphs, the smart turn and the Target time that grow with their cell.
  • The FIT and ZIP readers and the Garmin client, with made-up files and replies: a token refused once, a ride matched by its start time, gaps filled second by second, a Garmin ride turned into a BikeComp ride.
  • The Garmin field on eight models in Garmin’s simulator. The smallest crashed with no power reading, so model-dependent readings are now checked first.
  • An accessibility audit of every screen. At large text sizes, rows now stack and grids drop to two columns.

Bluetooth, the watch link and Spotify can’t be fully tested in the simulator, so they’re next, on the bike.

Outcome

As of late October 2026, eleven phases are built: 127 screens and 395 automated tests. It’s installed on my iPhone, BikeComp Link is on the Garmin, and Garmin Connect is ready for a key. Two rides so far: the second found the dropouts and false alarms that Phase 11 fixed, and the next will show whether the fixes hold. Account backup, Spotify and Strava each still need an account set up.

What’s next?

  • Ride it. The watch link through a whole ride (the diagnostics will show any gap), the cycle path beside the road, a deliberately missed turn, the route’s heads-ups and the turn card on a hilly ride, swiping off the map, high contrast in the sun.
  • Add my Garmin key. Then import my Garmin rides, so the ride time estimate learns my pace before the next route.
  • Finish the review’s phases. A ride screen that needs no touching, and a buzz on the wrist for turns.
  • Switch on the accounts. Firebase for backup, Spotify, and Strava with its token service.
  • Check the cadence estimate against a real cadence sensor.
  • Later: offline rerouting. Downloaded maps work without signal, but finding a new route still needs it.