new in @GymHero_app.
apple intelligence reads your workout routine and figures out which muscle groups you trained.
then the body map lights up automatically.
building training programs into @GymHero_app.
multi-week plans, scheduled sessions, and the next workout ready inside start workout.
your next planned workout shows up when you’re ready to train.
just added a volume chart so you can see your weekly mileage build.
anyone training for a marathon or half knows volume is everything. @GymHero_app makes your volume visual, so you can clearly see your mileage climb and hit your goals.
Apple's detailed sleep analysis chart is a great piece of UI, but it's not a standard component you can just use.
I've open-sourced SleepChartKit - the exact, production-level implementation I use in @GymHero_app to solve this.
Left: SleepChartKit
Right: Apple Health
SleepChartKit handles it all for you:
- Mapping HealthKit data to visual segments
- Performant Canvas drawing & updates
- Calculating timeline scales & coordinates
SwiftUI, HealthKit, iOS 15+. Link in the comments. Stars are appreciated! ⭐
#SwiftUI #HealthKit #OpenSource #iOSDev #buildinpublic
working on readiness score, sleep tracking, and more health metrics inside @GymHero_app .
feels right to have it all in one place. the app I use to log workouts is now the same one I use to check recovery, heart rate, and post-run insights.
dm for a promo code
most fitness apps bury crucial health metrics.
with @GymHero_app, VO₂ Max and HRV are now glanceable, right on your Home Screen.
these new widgets surface your readiness score and cardio fitness instantly. built with SwiftUI, designed to be used.
digging around online, it felt like recreating Apple’s sleep graph was borderline impossible.
turns out it’s just SwiftUI + a bit of Canvas magic.
here’s the Sleep Stages chart; visualizing awake, light, deep, and REM phases across the night.
screenshots below.
most fitness apps separate strength and cardio. I built one that doesn’t.
the latest @GymHero_app update combines gym and cardio workouts into a single, smart app—heart rate, speed, performance trends—all in one place.
parallax over MapKit. beautiful, real-time charts. MLX models that actually explain your heart rate patterns.
demo below.
gym hero tracks your sleep with a science-based Sleep Score—transforming complex metrics into a clear 0–100 rating.
Science-Backed Metrics
inspired by AASM guidelines, the algorithm evaluates sleep across four core dimensions, each weighted to reflect their impact on cognitive and physical recovery:
Total Duration (35%)
Rewards optimal sleep length (7–9 hrs per NSF recommendations).
Efficiency (20%)
High sleep efficiency (≥85%) maximizes restorative sleep.
Stage Distribution (30%)
Balanced REM, deep, and light sleep proportions based on AASM benchmarks.
Continuity (15%)
Analyzes nighttime awakenings to reflect sleep fragmentation’s negative impact.
can't interpret detailed data? on-device intelligence powered by MLX analyzes your sleep privately and securely.
you can dive deeper into the science behind Gym Hero’s sleep tracking method: https://t.co/nYjifxLzwr