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
37 lines
752 B
Swift
37 lines
752 B
Swift
//
|
|
// WorkoutsApp.swift
|
|
// Workouts
|
|
//
|
|
// Copyright 2025 Rouslan Zenetl. All Rights Reserved.
|
|
//
|
|
|
|
import SwiftUI
|
|
import SwiftData
|
|
|
|
@main
|
|
struct WorkoutsApp: App {
|
|
@State private var services = AppServices()
|
|
|
|
var body: some Scene {
|
|
WindowGroup {
|
|
#if DEBUG
|
|
if ScreenshotSeed.isActive {
|
|
ScreenshotRootView(services: services)
|
|
} else {
|
|
root
|
|
}
|
|
#else
|
|
root
|
|
#endif
|
|
}
|
|
}
|
|
|
|
private var root: some View {
|
|
RootGateView()
|
|
.environment(services)
|
|
.environment(services.syncEngine)
|
|
.modelContainer(services.container)
|
|
.task { await services.bootstrap() }
|
|
}
|
|
}
|