84d45a6d41
DEBUG-only screenshot support (seeded sample data via ScreenshotSeed, per-screen launch args, screenshot roots for both apps) so iPhone + Apple Watch App Store shots can be captured deterministically from the simulator — all excluded from release builds. Also seed ExerciseView's set-grid progress in init so it renders correctly on the first frame. Adds Scripts/metadata/ as the listing source of truth (copy, URLs, review notes, and the captured screenshots). Claude-Session: https://claude.ai/code/session_018gg69MaUetDNzWzBXisfMV
38 lines
860 B
Swift
38 lines
860 B
Swift
//
|
|
// WorkoutsApp.swift
|
|
// Workouts Watch App
|
|
//
|
|
// Copyright 2025 Rouslan Zenetl. All Rights Reserved.
|
|
//
|
|
|
|
import SwiftUI
|
|
import SwiftData
|
|
|
|
@main
|
|
struct WorkoutsWatchApp: App {
|
|
@State private var services = WatchAppServices()
|
|
@WKApplicationDelegateAdaptor(WatchAppDelegate.self) private var appDelegate
|
|
|
|
var body: some Scene {
|
|
WindowGroup {
|
|
#if DEBUG
|
|
if ScreenshotSeed.isActive {
|
|
WatchScreenshotRoot(services: services)
|
|
} else {
|
|
root
|
|
}
|
|
#else
|
|
root
|
|
#endif
|
|
}
|
|
}
|
|
|
|
private var root: some View {
|
|
ContentView()
|
|
.environment(services.bridge)
|
|
.environment(appDelegate.sessionManager)
|
|
.modelContainer(services.container)
|
|
.task { services.activate() }
|
|
}
|
|
}
|