Make Apple Health workout recording watch-only
The phone no longer writes estimated Health workouts: the watch, which runs the live session, is the sole recorder. Replaces WorkoutHealthWriter with a WorkoutHealthDeleter that only removes a legacy phone-estimate workout when its record is deleted here, drops the MET calorie table and the phone's write/read Health scopes, and keeps phoneEstimate decodable for existing documents. Claude-Session: https://claude.ai/code/session_01HJDQQDA9QdP8zByg43H5v3
This commit is contained in:
@@ -9,8 +9,8 @@ import SwiftUI
|
||||
import SwiftData
|
||||
|
||||
/// Post-workout summary shown right after a workout finishes. Queried by id so the
|
||||
/// health metrics (calories, heart rate) fill in live as they arrive — from the
|
||||
/// watch over the bridge, or from the phone's estimate a few seconds after ending.
|
||||
/// health metrics (calories, heart rate) fill in live as they arrive from the watch
|
||||
/// over the WatchConnectivity bridge.
|
||||
struct WorkoutSummaryView: View {
|
||||
@Environment(\.dismiss) private var dismiss
|
||||
@Query private var workouts: [Workout]
|
||||
|
||||
Reference in New Issue
Block a user