Daylight
An outdoor daylight and vitamin D planner for iPhone that pairs local solar geometry with UV tracking to calculate safe sun exposure windows and vitamin D synthesis. The codebase is feature-complete in source while launch gates remain.
- Local-first
- on-device solar math
- 2 bounds
- target dose vs protect limit
- 83 tests
- solar and safety verification
- 0 ads
- private local architecture
Native iPhone app for daylight and vitamin D timing, feature-complete in source with launch gates remaining.
Outdoor daylight planning with clear exposure boundaries.
Daylight pairs on-device solar calculations with elevation-aware UV forecasts to plan safe daylight windows without gimmicks.



Profile
Saves skin response and coordinates locally without an account.
skin type · coordinatesCalculate
Computes solar angles locally and merges elevation-aware UV data.
solar math · UV forecastTrack
Counts exposure progress and alerts before reaching burn limits.
live timer · protect alertSync
Writes confirmed outdoor minutes directly to Apple Health.
HealthKit · Time in DaylightLocal solar math, dual-boundary engine, session tracking, and HealthKit sync.
Dual-boundary targets
Separates useful daylight synthesis from the protect boundary to prevent burns.
50% vs 80% MEDElevation-aware UV
Pulls forecast UV that already accounts for elevation instead of stacking fake multipliers.
no double multiplierConfirmed minutes only
Writes only verified outdoor time to Apple Health rather than modeled blood levels.
HealthKit integrationConservative assumptions and honest bounds.
- Keep target exposure separate from the hard protect boundary.
- Write only confirmed duration to HealthKit as Time in Daylight.
- Never apply duplicate altitude multipliers to elevation-aware forecasts.
- Run all solar geometry calculations locally on the device.
Native app, estimation engine, and test suite.
Native SwiftUI app with a solar dial, live timer, history ledger, and home widgets. Feature-complete in source.
native iOS appOn-device solar model combining local geometry and elevation-aware forecasts to separate target doses from burn limits.
on-device model83 tests covering solar geometry, reboot recovery, timezone resilience, and health-write safety.
83 tests green

