v1.3.0 is on the App Store — actively maintained.
A food-expiry tracking iOS app. Record groceries, track expiry dates, and get a local notification on the day something expires — so less food goes to waste because you forgot about it.
"Entropy" — food left unmanaged drifts toward disorder over time. The name captures the core idea: if you don't manage it, it goes bad.
- UI: SwiftUI (bridged to a UIKit Router via HostControllers)
- Persistence: SwiftData (local) + CloudKit (opt-in iCloud sync)
- Architecture: MVVMC
- Notifications: UserNotifications (local)
- Widget: WidgetKit (medium size, sharing the app's own presentation code)
- Monetization: free + ads (Google AdMob), one-time IAP to remove ads
- Target: iPhone only · iOS 26+ · portrait · light/dark
- MVVMC layering:
@Model(persistence DTO) →SwiftDataManager(toDomain()) → ViewModel → State → View. ViewModels never touch SwiftData@Modeldirectly. - CloudKit-safe schema by construction (defaulted/optional attributes, no unique constraints) so sync can be toggled on/off cleanly.
- Opt-in iCloud sync (default off) — user data is never silently uploaded.
- No third-party analytics/crash SDK — Xcode Organizer + App Store Connect only.
This project is designed spec-first with
Spectra: every decision — and the reasoning
behind it — is written down before the code. Specs live in openspec/specs/,
organised as capabilities rather than documents, with change proposals in
openspec/changes/.
| Group | Capabilities |
|---|---|
| Foundation | app-shell, navigation |
| Domain | food-item, persistence, icloud-sync, notification, iap-remove-ads, advertising |
| Screens | home-ui, food-form-ui, settings-ui |
| Beyond the app | widget, app-intents |
| Cross-cutting | localization, app-store-listing |
Each capability spec states requirements as testable SHALL statements with WHEN/THEN
scenarios, and records the decisions that are easy to mistake for oversights — why the
expiry day counts as near-expiry rather than expired, why the schema stays
CloudKit-safe even with sync off, why the app never prompts for tracking permission.
openspec/specs/README.md maps how they connect.
v1.0.0 predates this structure; its capabilities were backfilled from the shipped code
as baseline-* changes, which are archived under openspec/changes/archive/. The
original pre-Spectra design documents remain available in the git history.
v1.5.0 on the App Store.
- Data layer (SwiftData model + manager, CloudKit-safe schema)
- Core screens (Home with statistics / Form / Settings)
- Expiry notifications, remove-ads IAP, AdMob banner
- Opt-in iCloud sync
- App Store submission
- Price tracking with a forward-looking total (v1.1.0)
- Medium home-screen widget, sharing the app's presentation code (v1.2.0)
- Shortcuts / Siri / Spotlight via App Intents (v1.3.0)
- Capability specs (15 capabilities; the original 13 backfilled from v1.0.0)
- Home screen rebuilt as a stack of five cards, Settings moved into its navigation bar, and each bucket's working list opened from its own card (v1.4.0)
- iPhone Duo: with the inner display held sideways, Settings sits beside the home cards; everywhere else the app looks as before (v1.5.0)
Pending work lives in openspec/changes/ as change proposals —
each one states what is decided, what is not, and what unblocks it.
The App Store screenshots — Home, the home-screen widget, and Settings.
The Xcode project is generated by XcodeGen from
project.yml (the .xcodeproj and generated Info.plist are not committed).
brew install xcodegen
xcodegen generate
open FoodEntropy.xcodeproj- Requirements: Xcode 26+, iOS 26+ target.
- Team:
project.ymlcarries the author'sDEVELOPMENT_TEAM. The simulator builds and runs as is; a real device — and iCloud / Push / IAP / the widget's App Group — requires replacing it with your own team ID.
MIT © 2026 Shinren Pan


