Skip to content
Cameron Mills

All projects

An iPhone voice recorder that shows what the Mac did with each note

LT Capture for iOS

Part of Life Tracker

A SwiftUI app that records a voice note, hands it to the Life Tracker through iCloud Drive, and shows what really happened to each note, read back from the Mac's receipt.

Code on GitHub

On screen

Three screens of LT Capture. Select a part to outline it, and step through the screens.

Record

1 of 3. Ready: one press records a note, and the list shows what the Mac did with each one.

Screenshots from the iOS Simulator with invented sample notes. The app has since been installed on a phone.

Problem

The Life Tracker already took voice notes from iPhone shortcuts. But a shortcut cannot stop on silence, survive a phone call, resend safely, or show what became of each note. I wanted a recorder whose screen shows what actually happened to every note.

Approach

Treat the phone as one side of a written file protocol rather than as a client of a server. The Mac side had already defined the format: an audio file with a small description file beside it, dropped into an iCloud folder, and a receipt the Mac writes back. The protocol document set out what a good app would do before any app code existed.

Architecture

The logic lives in a Swift package tested on the Mac, with a thin SwiftUI app around it. Recording is a simple state machine driven by button presses, the audio system, a silence detector and the app's own life cycle. A phone call, an audio reset or a lost microphone ends the note and sends what was recorded.

Delivery writes both files under hidden names the Mac ignores, then reveals them in an order that means the Mac never picks up half a note, and checks the size on arrival. The Mac does not remove duplicates, so the app only resends a note after confirming the Mac has no copy of it anywhere. On the Mac, a note is accepted only once its files pass a structural check and actually decode, whatever order iCloud delivers them in.

What I built

Each note on screen shows what the Mac did with it, read from the receipt. The receipt is what counts, not where the file happens to sit, so a note is never shown as filed by mistake. Once the receipt mentions a note, the app never offers to send it again. Notes wait in an outbox kept out of iCloud Backup and are cleared once filed. Every note is marked as the owner's voice only.

Results

Audio is compressed for speech, so a ten-minute note is only a few megabytes. The test suite reports green only when every step passes on the same commit, and the merge command refuses to merge unless it does.

LT Capture for iOS: results against their thresholds
CheckExpected or thresholdActualResult
A minute of speech-like sound, encodedWithin the size range set for speechInside the rangePass
Measured on the Mac. The checks that need a real phone have not run yet, so they are not listed.

What didn't work

It is not one gesture from the lock screen: the shortcut opens the app, so a locked phone needs Face ID first. Several behaviours can only be proved on a real phone, such as a call in the middle of a note or a restart before sending, and those checks have not been run yet. The first run on my phone found that picking the inbox folder in onboarding did nothing, and that is fixed.

Stack

  • Swift
  • SwiftUI
  • AVFoundation
  • App Intents
  • iCloud Drive

How these figures are sourced

The outcome figure is agent-reported: it is taken from a test log or report written by the agents that built and ran the system. The status was read from the code repository at commit fc02ac2 on 1 Oct 2026. Every figure and claim on this page is tied to a source file or a CV line in the site's content.