Skip to main content
back to grid
Projects2026

Daylight

An outdoor daylight and vitamin D planner for iPhone that pairs local solar geometry with UV forecasts to estimate useful sun windows, with a protect limit kept separate. The codebase is feature-complete in source while launch gates remain.

Daylight Today screen with the best time to go out, the UV index, when the window ends, and sunset.
Today. The best light, the UV index now, when the window ends, and sunset.
Daylight session prep saying personalized direct-sun timing is unavailable and offering a plain daylight walk timer.
Session prep when direct-sun timing isn't available. It offers a walk timer with no UV estimates.
Daylight's History screen with a seven-day summary and nothing logged yet.
History. Outdoor time, estimates, and the facts you chose to log, shown here empty.
Local-first
on-device solar math
2 bounds
target dose vs protect limit
87 tests
passed final CI, August 31
0 ads
no account, no paywall
§01The workThe product

Native iPhone app for daylight and vitamin D timing, feature-complete in source with launch gates remaining.

SwiftUI · local solar math · HealthKit

Outdoor daylight planning with clear exposure boundaries.

Daylight pairs on-device solar calculations with elevation-aware UV forecasts to estimate useful daylight windows, with a protect limit held at 80% of the estimated burn dose in every mode.

§02The pipelineEnd-to-end flow
01

Profile

Saves skin response and coordinates locally without an account.

skin type · coordinates
02

Calculate

Computes solar angles locally and merges elevation-aware UV data.

solar math · UV forecast
03

Track

Counts exposure progress and alerts before reaching burn limits.

live timer · protect alert
04

Sync

Writes confirmed outdoor minutes directly to Apple Health.

HealthKit · Time in Daylight
§03What I builtPieces that compound

Local solar math, dual-boundary engine, session tracking, and HealthKit sync.

Dual-boundary targets

Separates useful daylight synthesis from the protect boundary, an estimate set short of predicted burning and never a safety guarantee.

50% vs 80% of estimated burn dose

Elevation-aware UV

Pulls forecast UV that already accounts for elevation instead of stacking fake multipliers.

no double multiplier

Confirmed minutes only

Writes only user-confirmed outdoor time to Apple Health rather than modeled blood levels.

HealthKit integration

A guided ladder, adults only

The guided tan mode sets each session's target from a dose ladder. A concerning next-day skin check or a missed one pauses progression, and minors only get daylight mode.

25 to 72% of estimated burn dose · protect stays at 80%
§04Build rulesSafety · evidence · honesty

Conservative assumptions and honest bounds.

Selected rulesevidence-first posture
  1. Keep target exposure separate from the hard protect boundary.
  2. Write only confirmed duration to HealthKit as Time in Daylight.
  3. Never apply duplicate altitude multipliers to elevation-aware forecasts.
  4. Run all solar geometry calculations locally on the device.
§05StackEvery tool earns its line
SwiftUI / InterfaceHealthKit / Health syncSolar geometry / On-device mathWidgetKit / Glanceable stateiOS 17+ / Target
§06ArtifactsReceipts and public proof

Native app, estimation engine, and test suite.

Daylight for iPhone

Native SwiftUI app with a solar dial, live timer, history ledger, and home widgets. Feature-complete in source.

native iOS app
Dual-boundary engine

On-device solar model combining local geometry and elevation-aware forecasts to separate target doses from burn limits.

on-device model
Safety test suite

87 tests covering solar geometry, session recovery, travel and clock changes, the tan ladder, and the plan's location safety gates.

87 tests · final CI passed Aug 31