{
  "id": 11887071,
  "title": "Building an AI workout coach in SwiftUI: one-tap logging during the set, GPT-4o analysis after",
  "url": "https://urgent.news/2026/10/04/building-an-ai-workout-coach-in-swiftui-one-tap-logging-during-the",
  "topic": "ai",
  "section": "AI",
  "published": "2026-10-04T08:57:41.000Z",
  "source": {
    "name": "Dev.to",
    "slug": "dev-to",
    "url": "https://dev.to/shurinbergo_5451b6dad08f8/building-an-ai-workout-coach-in-swiftui-one-tap-logging-during-the-set-gpt-4o-analysis-after-3126"
  },
  "original_language": "en",
  "account": "During a workout, the Body Forge app presents minimal information to avoid overwhelming the user. It displays the last week's sets for the current exercise, a rest timer, weight, and reps, along with a single tap to log the set. Everything else is deferred until the session concludes. After completing the workout, the app compiles a concise summary and sends it to GPT-4o, which analyzes the data and provides personalized feedback for the next session. To process the data efficiently, the app creates a structured summary containing exercise details, top sets from the last three weeks, volume change compared to the previous session, and average heart rate from HealthKit. This structured summary enables the AI model to generate a focused analysis in just 10 seconds, offering actionable recommendations such as adjusting weights or implementing a deload week. Body Forge is developed using SwiftUI for iOS 17 and later, Core Data for local storage with CloudKit sync, and HealthKit for heart rate tracking during the workout. The app also features a custom program library with more than 200 exercises in multiple languages, including Russian. The landing page for Body Forge is a bilingual website that drives users directly to the App Store, emphasizing the app's unique value proposition through a single screen with a clear call-to-action.",
  "summary": "Most people who track their training in a notes app lose the one thing that matters: set-by-set context. The note does not remember what you lifted last week, and generic gym trackers bury the screen in charts without ever telling you what to do next. The brief for Body Forge was a coach in your pocket: clean tracking during the set, real analysis after it, and programmes that adapt as you…",
  "key_points": [
    "Body Forge app offers minimal in-set information with a one-tap logging feature",
    "GPT-4o analyzes user data after workout for personalized feedback",
    "App uses SwiftUI, Core Data, HealthKit, and CloudKit for iOS 17+"
  ],
  "editors_take": null,
  "illustration": null,
  "coverage": {
    "outlets": 1,
    "also_reported_by": []
  },
  "ai_generated": true,
  "disclaimer": "Summaries, key points and the editor’s take are written by software from other outlets’ reporting and may contain errors — always check the linked original."
}