Skip to content

Add intermittent fasting app — native iOS (SwiftUI) + installable PWA - #1

Draft
File2File wants to merge 3 commits into
mainfrom
claude/intermittent-fasting-ios-app-S8d7R
Draft

File2File wants to merge 3 commits into
mainfrom
claude/intermittent-fasting-ios-app-S8d7R

Conversation

@File2File

@File2File File2File commented Jun 1, 2026

Copy link
Copy Markdown
Owner

An intermittent-fasting app in two forms: a native SwiftUI iPhone app and an installable Progressive Web App you can add to the Home Screen without the App Store.

📱 iOS app (ios/)

Native SwiftUI. Live timer with progress ring, protocols (14:10/16:8/18:6/20:4/OMAD/custom), body fasting stages (fat burning, ketosis, autophagy), editable start time, history, stats/streaks, local goal notification, UserDefaults persistence. Unit tests + XcodeGen project (project.yml). Targets iOS 17+.

cd ios && xcodegen generate && open IntervalFasting.xcodeproj

🌐 Web app / PWA (web/)

Vanilla-JS port of the same app — no Mac or App Store needed. Open in Safari on iPhone → Share → Add to Home Screen → runs full-screen and offline.

  • SVG progress-ring timer, protocols, stages, history, stats/streaks
  • localStorage persistence, service worker (offline), web app manifest
  • Generated app / maskable / apple-touch icons
  • Goal notification via the Notifications API (where allowed)

🚀 Deploy (GitHub Pages)

.github/workflows/deploy-pages.yml publishes web/ to Pages. After merging to main: Settings → Pages → Source: GitHub Actions, then visit https://<owner>.github.io/<repo>/. To test before merging: Settings → Pages → "Deploy from a branch" → this branch, / (root) → served at …/web/.

Notes

  • No Swift toolchain in this environment, so the iOS code was reviewed manually (not compiled); the web app was served locally and its core logic asserted with Node.

https://claude.ai/code/session_01WtL6t7ALFNsrbNpAxn4g4q

claude added 2 commits June 1, 2026 17:50
Implements a complete iPhone app for interval fasting:
- Live fasting timer with circular progress ring and time-to-goal
- Fasting protocols (14:10, 16:8, 18:6, 20:4, OMAD, custom)
- Body fasting stages (fat burning, ketosis, autophagy)
- Editable start time, history with goal tracking, and stats/streaks
- Local goal-reached notification and UserDefaults persistence
- Unit tests for core logic and XcodeGen project definition

https://claude.ai/code/session_01WtL6t7ALFNsrbNpAxn4g4q
Browser version of the fasting app that installs to the iPhone Home
Screen via Safari (Add to Home Screen), runs full-screen and offline:
- Vanilla JS port of the domain model (protocols, stages, sessions, stats)
- Timer with SVG progress ring, history, stats/streaks, custom protocol
- localStorage persistence, service worker for offline, web app manifest
- Generated app/maskable/apple-touch icons
- GitHub Actions workflow to publish web/ to GitHub Pages

https://claude.ai/code/session_01WtL6t7ALFNsrbNpAxn4g4q
@File2File File2File changed the title Add native SwiftUI intermittent fasting iOS app Add intermittent fasting app — native iOS (SwiftUI) + installable PWA Jun 1, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants