Skip to content
All work
Milemark app icon

MILEMARK·A ROUTE, PRINTED

A run is a number. A run should be a thing you can keep.

Milemark records a run on a real map and then prints it: a receipt on thermal paper with the route drawn on it, the distance, pace and time, and an optional note. Runs are kept in an archive of route silhouettes rather than a dashboard of numbers, and a receipt can be torn off by pulling the paper.

Role

Sole author

Stack

Swift · SwiftUI · MapKit

Platform

iOS 18+ · Liquid Glass on iOS 26+

Build

XcodeGen, CI on every push

The receipt — printed from a tray.
The receipt — printed from a tray.
Recording — a quiet map, a vivid track.
Recording — a quiet map, a vivid track.
Runs — every route kept as its own shape.
Runs — every route kept as its own shape.
Photo — printed three ways: halftone, dither, poster.
Photo — printed three ways: halftone, dither, poster.
ASCII — the same route, printed.
ASCII — the same route, printed.
Pace — inspectable per kilometre.
Pace — inspectable per kilometre.
Kept — the receipts you kept.
Kept — the receipts you kept.
Share — with the route ends trimmed.
Share — with the route ends trimmed.
The same receipt at the largest text size.
The same receipt at the largest text size.
Import — saying plainly that this build has no Strava keys.
Import — saying plainly that this build has no Strava keys.
Settings — with the import section.
Settings — with the import section.

Screens

01 / 11

Demo

See it in use

A full feature tour of the real app: open a run, print its route as a receipt, switch to ASCII and pace, try the photo treatments, share it, enlarge the text, and tear off the paper. Then browse kept receipts, open settings and import, record a route on the live map, pause, resume, and review the run.

2 min 13 sec · 60 fps · iPhone Simulator · silent

Architecture

How the system fits together

Core Location fixes → strict recorder → route geometry → receipt renderer (route / ASCII / pace / photo) → paper tray → share sheet

The problem

A run becomes a row you scroll past

Most running apps turn a run into a row: distance, pace, time, a badge, a feed. The data is the right data. The problem is what it is used for. A number you can scroll past is a number you cannot keep.

There is one running app that prints a receipt for each run, and the idea is good. Milemark takes the idea — a run recorded as a physical printout — and the motion of paper feeding out of a machine. It is not a copy. The mark, the masthead, the footer, the paper edge, where the paper comes from, the picture, and the statistics are all different, and the differences are deliberate.

The reference is a badge and a control. Here the mark is a mile marker with a route running through it, the paper comes out of a metal tray rail instead of a black slot, the statistics sit six in a grid instead of three across, and a receipt carries a comparison with the last time you ran the same route.

Competitive gap

What running apps get wrong

Three habits run through the category, and each one costs the same thing: the run stops being an object and becomes a metric.

Milemark is deliberately small. It records a route, prints it, and keeps it. It does not have a feed, a social layer, a training plan, or an account.

ApproachWhere it fails
Feed and streaksA run disappears into a scroll. There is nothing to hold afterwards.
Badge wallsEvery run becomes a medal, and the medal quietly becomes the point.
Cloud-first accountsYour history lives on someone else’s servers, and sharing it means signing up.
MilemarkThe run is a printed object, the history is a shape, and nothing leaves the phone.

The artifact

The receipt is the product

The paper comes out of a metal tray rail and stays in one place while the graphic changes inside it. Four treatments are available: the route trace, an ASCII map printed as a field of characters, a pace chart per kilometre, and a photograph treated like a halftone print. Six statistics sit in a three-by-two grid. The footer is a left-aligned `LOGGED …` with `PRINTED ON THIS PHONE` opposite it.

A photograph can be printed three ways — a dot screen, an ordered dither, and a hard two-tone poster. Each is laid down row by row, the way a plotter prints, and the treatment is chosen from the caption strip under the picture.

The tear is the interaction people describe. The grip at the end of the paper says what to do: it only offers the pull once the receipt has been scrolled to the end, because a pull in the middle of a long receipt is a scroll. The paper then follows the finger, and released short of the threshold it springs back into the slot. The **Tear off** button in the action bar does the same thing without the gesture.

A receipt also compares itself with the last time the same route was run. The comparison is made on the shape of the route rather than on its samples, so two laps of the same loop match even when one of them has a lap more — and what it shows is the pace difference.

Signal handling

The recorder is deliberately strict

A plausible-looking route that is wrong is worse than no route at all, so the recorder refuses to invent distance when the signal is poor.

- Fixes older than ten seconds, or with an accuracy worse than 40 m, are discarded. - A jump that would imply running faster than 12 m/s is discarded. - Movement smaller than 40 cm between samples is treated as noise, so standing still does not add distance. - Pausing stops the clock and the distance. Resuming starts a new segment, so the route never draws a false straight line across the gap, and the distance covered during the pause is never counted. - If the runner stops for more than twelve seconds, the run pauses itself. The test is deliberately slow, so a pause at traffic lights is not mistaken for the end of the run.

The clock is worked out from the dates rather than from a timer, so a run keeps recording with the phone locked and in a pocket. The moving time is the span of the recorded samples, so a pause is not counted against the pace. Kilometre splits interpolate the moment each boundary was crossed, rather than taking the time of the first sample past it, so a route sampled every ten metres does not report every split ten metres slow.

None of this makes a route guaranteed accurate. It makes the app refuse to invent distance when the signal is poor.

The map is drawn with MapKit using a muted standard style — no points of interest, no traffic, no rotation — so the recorded track and the runner are the only saturated things on screen. The route is drawn by MapKit itself; a SwiftUI filter applied to the map breaks its metal-rendered tiles.

Keeping runs

The archive is shapes, not numbers

Runs are stored as route silhouettes rather than rows of statistics. Every run in the archive is its own shape, with its date and distance, and the collection at the end holds the receipts worth keeping.

The sample activities in the screenshots are nine genuine closed loops found in real OpenStreetMap street data — the streets a runner would actually take around a block or a park, not invented ones. The archive labels them as demo data, because they are. The route geometry shown is derived from © OpenStreetMap contributors, licensed under the ODbL; the app draws its basemap with MapKit at runtime.

Motion and haptics

Meant to be felt, not just looked at

Two rules shape the motion. Haptics are never on every tap — that is the motion equivalent of every button being loud. And a long operation is felt as it happens rather than announced at the end.

The action bar is on **Liquid Glass** where the system provides it (iOS 26 and later), and on a matched flat bar where it does not, so the app still supports iOS 18 without the bar feeling broken.

One caveat the table hides: the haptics are implemented but have not been felt. The simulator cannot make them, so the table is the design, not a record of what has been verified on a device.

Meant to be felt, not just looked at
InteractionWhat happensHaptic
The paper feeds outThe sheet travels out of the tray over 1.1 s, with a shadow following the exposed edgeA run of soft transients, so the receipt is felt as it prints
Tapping a routeThe route grows into the receiptA light impact
Changing the treatmentThe picture changes in place, inside a fixed frameA selection tick
The ASCII map appearsThe map is laid down row by row—
A photograph is printedThe dot screen, dither or poster is printed row by row—
Tearing offThe paper follows the finger, then falls awayA landing, then a confirmation
SavingThe button becomes a tickA confirmation

Dynamic Type

The layout gives way rather than the type shrinking

The type is built from text styles, so it follows the reader's Dynamic Type setting from the smallest size to the largest. At the accessibility sizes the layouts give way rather than the type shrinking back down.

The receipt's statistics become two columns instead of three. The title wraps instead of being cut off, and the run type and the date drop to their own lines. The action bar becomes a column, and the glass takes the shape of what is inside it. The archive's cards become one across, because a narrow card cannot hold the text inside it. Rows of figures become columns, so their labels keep their words whole.

One thing deliberately does not scale: the **shared card**. It is exported as an image with a fixed canvas, so its composition is held, and the preview shows exactly what will be shared.

Health and Strava

Importing is the one place it talks to someone else

Two services can bring runs into the archive. Both are optional, and both say what they need when they cannot be used.

**Health.** The app asks to read workouts and their heart rate, and never asks to write. HealthKit's workouts carry no route, so their receipts show the numbers without a drawn shape. Reading Health needs the HealthKit capability enabled for the app's identifier in the Apple Developer account, and a provisioning profile that includes it — without one the build will not sign, and the app says the entitlement is missing.

**Strava.** The reader allows the app in a system sheet, so the app never sees a password. The code that comes back is checked against the nonce that was sent, and the token is kept in the keychain rather than with the runs. Strava's client ID and secret are build settings, not values in the repository, and the redirect URI registered with Strava has to be `milemark://strava/callback`.

A build without those keys is not broken: the import screen says that it has no Strava keys and what to add. Imported runs keep their own numbers and are marked with where they came from, and importing the same activity twice does not produce two copies of it.

Privacy

Nothing leaves the phone

Runs are stored locally on the device. There is no account and no server.

If a run cannot be written to disk, the app says so and **keeps the recording** rather than losing it quietly. A runs file that cannot be read is moved aside rather than overwritten.

The share preview leaves out the recorded date, time and location, and can trim the first and last 15% of the route. That is not anonymity: a distinctive route, a run title or a personal note can still identify a place or a person. The app says so on the share screen rather than implying a guarantee it cannot make.

**Importing is the one place the app talks to someone else.** Both services are opt-in and are only contacted when the reader asks for them. Health is read-only, and the app never asks to write. Strava goes through a system sheet, so the app never sees a password, and the access token is kept in the keychain rather than in the runs file, and it can be forgotten from the app at any time. Nothing is uploaded anywhere else. There is still no account and no server.

Results

What is verified

The core loop — record a run, review it, print the receipt, keep it, share it — is implemented and runs on a simulator. GitHub Actions builds the app and runs the tests on every push and pull request.

`RouteGeometryTests` covers the parts where a bug would quietly produce a wrong number rather than a crash: distance accumulation, sample rejection, splits, pace formatting, route normalisation and endpoint trimming. `RunRecorderTests` covers the recorder’s decisions: distance accumulation, standing still, implausible jumps, pausing and the auto-pause threshold. `MilemarkUITests` drives the app end to end — opening a receipt, changing the graphic, pulling the paper short of the tear and past it, tearing off, and opening the share preview. A screenshot cannot show whether a gesture behaves. It also opens the app at the largest text size, where a layout that only works at the default size falls apart.

The screenshot capture fails if the recording did not record anything, so a blank map cannot slip into a frame. Every screen is the real app running in the iPhone 17e simulator, captured from the simulator itself — the system furniture in them is drawn by iOS 26.5, so it is Apple's own, but nothing has been photographed on a physical iPhone.

3

Test suites

GEOMETRY · RECORDER · UI

0

Accounts required

LOCAL ONLY

11

Screens captured

iPHONE 17e SIMULATOR

Source · iOS Simulator, with GitHub Actions on every push; route geometry derived from © OpenStreetMap contributors (ODbL)

Lessons

What building it taught me

The first version drew the route on a canvas and called it a receipt. It was a receipt-shaped rectangle with a picture of a run in it. What made it a receipt was the paper: the torn edge with shallow fibres, the way it comes out of a tray, the fact that it can be torn off and held.

The second lesson was that a gesture needs an invitation. A pull in the middle of a scrollable view is a scroll, and the app will not ask you to do something that reads as a mistake. The tear only unlocks once the receipt has been scrolled to the end, because until then the paper is not ready to come off.

The third was about refusal. The strict recorder was not planned as a feature; it fell out of the tests. Every rule in it is a bug that could have shipped as a plausible-looking number.

A route that looks right but is wrong is worse than no route at all.

Still open

What is not built yet

Importing needs keys the repository does not carry

Health needs the HealthKit capability on the app's identifier, and without it the build will not sign. Strava needs a client ID and secret that are build settings, not repository values. Both features are implemented; neither can be exercised from a clean checkout.

Health and heart rate are read, not written

HealthKit's workouts carry no route, so an imported run's receipt shows the numbers without a drawn shape. The app never asks to write.

Haptics have not been felt

They are implemented, and the simulator cannot make them. The motion table in this case study is the design, not a record of what a device has confirmed.

Physical devices are unverified

A real run needs a physical device, because the simulator has no location feed. Every screen here was captured in the simulator; nothing has been photographed on a physical iPhone.

iOS 18 does not get Liquid Glass

Below iOS 26 the action bar is a matched flat bar rather than the system material. It does not look broken, but it is not glass.

MILEMARK is a working title

It is not a settled brand and it is not trademark-checked. The wordmark and the mark are original work, and no artwork or copy is taken from the reference app.

In short

What Milemark came down to

01

The artifact is the point

A run you can print and hold is different from a run you can scroll past. The screen is the printer.

02

Refuse to invent

A strict recorder is what makes a number trustworthy. Discarding a bad fix beats averaging it into a plausible route.

03

Privacy, honestly stated

Local storage and no account are easy. Saying out loud that trimming the route ends is not anonymity is the part that matters.

More work