initial pre-viable version of watch app
This commit is contained in:
55
Workouts/_ATTIC_/ContentView_backup.swift
Normal file
55
Workouts/_ATTIC_/ContentView_backup.swift
Normal file
@ -0,0 +1,55 @@
|
||||
//
|
||||
// ContentView.swift
|
||||
// Workouts
|
||||
//
|
||||
// Created by rzen on 7/15/25 at 7:09 PM.
|
||||
//
|
||||
// Copyright 2025 Rouslan Zenetl. All Rights Reserved.
|
||||
//
|
||||
|
||||
//import SwiftUI
|
||||
//import SwiftData
|
||||
//
|
||||
//struct ContentView: View {
|
||||
// @Environment(\.modelContext) private var modelContext
|
||||
//
|
||||
// let completedStatus = WorkoutStatus.completed
|
||||
//
|
||||
// @Query(filter: #Predicate<Workout> { workout in
|
||||
// workout.status?.rawValue != WorkoutStatus.completed.rawValue
|
||||
// }, sort: \Workout.start, order: .reverse) var activeWorkouts: [Workout]
|
||||
//
|
||||
// var body: some View {
|
||||
// NavigationStack {
|
||||
// if activeWorkouts.isEmpty {
|
||||
// NoActiveWorkoutView()
|
||||
// } else if let currentWorkout = activeWorkouts.first {
|
||||
// WorkoutLogListView(workout: currentWorkout)
|
||||
// }
|
||||
// }
|
||||
// }
|
||||
//}
|
||||
//
|
||||
//struct NoActiveWorkoutView: View {
|
||||
// var body: some View {
|
||||
// VStack(spacing: 16) {
|
||||
// Image(systemName: "dumbbell.fill")
|
||||
// .font(.system(size: 40))
|
||||
// .foregroundStyle(.gray)
|
||||
//
|
||||
// Text("No Active Workout")
|
||||
// .font(.headline)
|
||||
//
|
||||
// Text("Start a workout in the main app")
|
||||
// .font(.caption)
|
||||
// .foregroundStyle(.gray)
|
||||
// .multilineTextAlignment(.center)
|
||||
// }
|
||||
// .padding()
|
||||
// }
|
||||
//}
|
||||
//
|
||||
////#Preview {
|
||||
//// ContentView()
|
||||
//// .modelContainer(AppContainer.preview)
|
||||
////}
|
Reference in New Issue
Block a user