How amonohno/easy-training-confirm works
EasyTraining is an iPhone app for recording runs and strength workouts, with guided training plans, spoken cues, earphone controls, and workout history. Users start a free or planned session from the run/strength screens; RunTracker coordinates measurement, guided progression, and announcements, then the app presents a summary and retains the session for history. Plan editing and reusable templates form a separate capability. Edges rely on the supplied excerpts, source index references, or README; unsampled storage and screen behavior is represented conservatively.
Main entry points: RunTracker.swift Session coordinator · RootView.swift Tab navigation · RunRecorder.swift Run recorder · TrainingPlan.swift Training plans
Components 25
App and screens
- App entry
EasyTraining/App/EasyTrainingApp.swift - Tab navigation
EasyTraining/Views/RootView.swift - Run home
EasyTraining/Views/Run/RunHomeView.swift - Strength home
EasyTraining/Views/Strength/StrengthHomeView.swift - Session screen
EasyTraining/Views/Run/RunSessionView.swift - Run summary
EasyTraining/Views/Run/RunSummaryView.swift
Plans and templates
- Plan list
EasyTraining/Views/Plans/PlanListView.swift - Plan editor
EasyTraining/Views/Plans/PlanEditorView.swift - Step editor
EasyTraining/Views/Plans/StepEditorView.swift - Training plans
EasyTraining/Models/TrainingPlan.swift - Plan templates
EasyTraining/Models/PlanTemplates.swift
Workout runtime
- Session coordinator
EasyTraining/Run/RunTracker.swift - Run recorder
EasyTraining/Run/RunRecorder.swift - Guided progression
EasyTraining/Run/GuidedSessionEngine.swift - Progression timing
EasyTraining/Run/GuidedProgression.swift - Location samples
EasyTraining/Run/LocationSample.swift - Rest detection
EasyTraining/Run/RestDetector.swift
Audio and controls
- Voice announcer
EasyTraining/Services/VoiceAnnouncer.swift - Speech text
EasyTraining/Run/SpeechText.swift - Earphone commands
EasyTraining/Services/RemoteCommandController.swift - Silent audio
EasyTraining/Services/SilentAudioPlayer.swift
Records and history
- Run session model
EasyTraining/Models/RunSession.swift - SwiftData records
EasyTraining/Storage/PersistentModels.swift - Workout history
EasyTraining/Views/History/HistoryView.swift
Other components
- Athlete
Connections 33
- Athlete → Tab navigation: uses
EasyTraining/Views/RootView.swift - App entry → Tab navigation: shows
EasyTraining/App/EasyTrainingApp.swift - Tab navigation → Run home: routes
EasyTraining/Views/RootView.swift - Tab navigation → Strength home: routes
EasyTraining/Views/RootView.swift - Tab navigation → Plan list: routes
EasyTraining/Views/RootView.swift - Tab navigation → Workout history: routes
EasyTraining/Views/RootView.swift - Tab navigation → Session screen: presents
EasyTraining/Views/RootView.swift - Run home → Session coordinator: starts runs
EasyTraining/Views/Run/RunHomeView.swift - Strength home → Session coordinator: starts workouts
EasyTraining/Views/Strength/StrengthHomeView.swift - Session screen → Session coordinator: controls session
EasyTraining/Views/Run/RunSessionView.swift - Session screen → Run summary: shows result
EasyTraining/Views/Run/RunSessionView.swift - Plan list → Plan editor: opens editor
EasyTraining/Views/Plans/PlanListView.swift - Plan editor → Step editor: edits steps
EasyTraining/Views/Plans/PlanEditorView.swift - Plan editor → Training plans: edits plans
EasyTraining/Views/Plans/PlanEditorView.swift - Step editor → Training plans: configures steps
EasyTraining/Views/Plans/StepEditorView.swift - Training plans → Plan templates: defines templates
EasyTraining/Models/PlanTemplates.swift - Tab navigation → SwiftData records: seeds templates
EasyTraining/Views/RootView.swift - Session coordinator → Run recorder: coordinates measurement
EasyTraining/Run/RunTracker.swift - Session coordinator → Guided progression: advances plan
EasyTraining/Run/RunTracker.swift - Guided progression → Training plans: flattens plan
EasyTraining/Run/GuidedSessionEngine.swift - Session coordinator → Progression timing: schedules progression
EasyTraining/Run/RunTracker.swift - Session coordinator → Location samples: uses location
EasyTraining/Run/RunTracker.swift - Run recorder → Location samples: accepts samples
EasyTraining/Run/RunRecorder.swift - Run recorder → Rest detection: detects rests
EasyTraining/Run/RunRecorder.swift - Run recorder → Run session model: builds records
EasyTraining/Run/RunRecorder.swift - Session coordinator → Voice announcer: announces events
EasyTraining/Run/RunTracker.swift - Session coordinator → Speech text: formats announcements
EasyTraining/Run/RunTracker.swift - Session coordinator → Earphone commands: handles commands
EasyTraining/Run/RunTracker.swift - Earphone commands → Silent audio: uses audio
EasyTraining/Services/RemoteCommandController.swift - Voice announcer → Silent audio: uses audio
EasyTraining/Services/VoiceAnnouncer.swift - Session coordinator → SwiftData records: saves sessions
- Workout history → SwiftData records: reads records
- Run summary → Run session model: summarizes
EasyTraining/Views/Run/RunSummaryView.swift