📱 Hello River on the iPhone: an app in a day
On 1 December I said "I want a SwiftUI app" in the morning. By the evening I was saving links from Safari's Share sheet on my own iPhone, into my own Hello River.
One day, from nothing to a native app on my phone. I have never written Swift for a living, and I didn't write much of it that day either. Claude Code did, while I tried things, asked for changes and ran into the walls Apple builds around iPhones.
In the first post, A River, Not a Library, I wrote about building Hello River: a guilt-free read-later app where links flow out of a river instead of piling up. I ended it with "a native app" as the next thing to try. This is that next thing: why I went native and what the app does.

Why SwiftUI, not React Native #
My notes said "React Native app". I changed my mind before any code was written, for one reason: the Share sheet.
The whole point of the app was saving. Until then I saved links with an iOS Shortcut that took four versions to get working. To show up in Safari's Share sheet, an app needs a Share extension, and a Share extension has to be written in Swift whichever framework the rest of the app uses. A home-screen web app can't appear there at all.
Once part of it had to be Swift anyway, the rest followed:
- It's only for my iPhone. Cross-platform buys nothing when there is one platform and one user.
- No dependencies. A small SwiftUI app is a few hundred lines on Apple's own stack. Nothing to update, nothing to audit.
- I wanted to learn it. The first post was about learning Cloudflare without risking anything that works. This was the same idea, applied to Apple.
The code lives in an ios/ folder in the same repo as the Cloudflare Worker. I asked whether that was OK. It is: separate repos usually follow team lines, and here the team is me.
What the app does (and doesn't) #
The app does two things: it shows the river, and it lets me save to it from anywhere on the phone.
- The river. The same list as the web page: links grouped by day, the AI summary, my "why I saved this" note, and "flows out in 12 days". Links that couldn't be read get a plain-words reason, like "The site didn't let Hello River in."
- Let go. Swipe a link away, with a few seconds to undo. Or let the whole river go at once, after a confirmation.
- Reading. A link opens in Safari's in-app view. When I close it, the app offers to let that link go.
- Saving. Share → Hello River from Safari or any app, add an optional note, Send. "In the river ✓".
Three things I asked for and didn't get, because iOS said no:
- A Let go button in the browser. Apple's Safari view doesn't take custom buttons. The workaround is the offer on close, plus an item in its Share menu.
- A blue badge on the icon. iOS badges are always red. And a count on the icon is an unread counter, the kind of nudge Hello River is built to avoid. So there's no badge.
- A separate login. The web app uses an emailed code. The iPhone app uses the same key as the old Shortcut, pasted once into Settings. The key is the sign-in, and "Forget key" is the sign-out.
Building it in the simulator first #
I asked one question before any code: can I try it without my phone? Yes. The iPhone simulator needs no Apple ID, no signing and no weekly reinstall. It even shares the Mac's network, so it could talk to Hello River running locally with wrangler dev, against a throwaway database with four sample links.
So the plan was: build everything in the simulator, and put it on the phone only at the very end.
A few things from that part of the day:
- The Xcode project was written by hand, not clicked together. Newer Xcode projects list folders instead of files, so the project file stays short and a new Swift file never touches it.
- It built first time, with Swift 6's strict concurrency checks switched on.
- The first screenshot caught a layout bug: "flows out in / 7 days" broke across two lines. The web page prevents that in CSS; the app needed non-breaking spaces.
- The one real compile error was concurrency. Apple's older
UIActivityclass (the thing behind a Share-menu item) isn't main-actor, and the project makes everything main-actor by default. The error read "main actor-isolated property 'activityTitle' has different actor isolation from nonisolated overridden declaration". Two small fixes later, it compiled. - Xcode 27 has no Simulator app in the place older versions kept it. My simulator had been running without a window all along. Pressing ⌘R in Xcode is what finally opened one.
The finished app is about 1,100 lines of Swift in 16 files, with no third-party packages.
Onto a real phone, for free #
You don't need Apple's $99-a-year developer program to put your own app on your own phone. A free Apple ID works. The catch is that the app stops opening after 7 days, and you reinstall it from Xcode.
Two days later: which build is on my phone? #
The next day I changed the river itself. Seven days felt too short: a link saved on a busy Monday was often gone before the weekend that had time for it. Links now stay 21 days, and the river got two new headings, "Last week" and "Earlier", so three weeks of links don't all sit under "Earlier this week".
The web app had it within minutes of deploying. The iPhone app only gets new code when I press ⌘R in Xcode. So I did, and then asked the obvious question: how do I know the phone has the new version?
The honest answer was "look for a Last week heading", which only works if some link happens to be old enough. So we added a line at the bottom of Settings: Built 3 Dec, 11:53 · a59a255. That's the build time and the git commit, stamped in by a small script every time Xcode builds.
By the numbers, and what I learned #
| Time to a working app on my phone | 1 day |
| Swift | about 1,100 lines in 16 files, no packages |
| Server changes | one word (source: "app") |
| Tests | 9 Swift, plus the 161 that already covered the server and website |
| Decisions logged for the app | 8 (D-055 to D-062) |
| Cost | $0 (free signing, a reinstall every 7 days) |
What I learned:
- Most of iOS's limits are about what apps may not change. No buttons in Safari's view, no blue badges. Knowing that early saves asking for things that can't exist.
- Good backend decisions pay off later. The plain API key from the first build meant the app needed no login and no new server code.
- The simulator gets you 90% of the way. The last 10% (signing, the Keychain, the Share sheet's Favorites) only shows up on a real phone.
- Writing every decision down still works. Each "why didn't we..." in this post came straight from the decision log, not from memory.
Hello River does what I built it for. I see something worth reading, tap Share, and forget about it. Three weeks later, if I haven't read it, it flows away. It's now in my pocket as a native app :)