wip
This commit is contained in:
45
Workouts Watch App/__ATTIC__/ExerciseDetailView.swift
Normal file
45
Workouts Watch App/__ATTIC__/ExerciseDetailView.swift
Normal file
@ -0,0 +1,45 @@
|
||||
////
|
||||
//// ExerciseDetailView.swift
|
||||
//// Workouts
|
||||
////
|
||||
//// Created by rzen on 7/23/25 at 9:17 AM.
|
||||
////
|
||||
//// Copyright 2025 Rouslan Zenetl. All Rights Reserved.
|
||||
////
|
||||
//
|
||||
//import SwiftUI
|
||||
//
|
||||
//struct ExerciseDetailView: View {
|
||||
// let log: WorkoutLog
|
||||
// let onStart: () -> Void
|
||||
//
|
||||
// var body: some View {
|
||||
// VStack(alignment: .center, spacing: 16) {
|
||||
// Text(log.exerciseName)
|
||||
// .font(.title)
|
||||
// .lineLimit(1)
|
||||
// .minimumScaleFactor(0.5)
|
||||
// .layoutPriority(1)
|
||||
//
|
||||
// HStack(alignment: .bottom) {
|
||||
// Text("\(log.weight)")
|
||||
// Text("lbs")
|
||||
// .fontWeight(.light)
|
||||
// .padding([.trailing], 10)
|
||||
//
|
||||
// Text("\(log.sets)")
|
||||
// Text("×")
|
||||
// .fontWeight(.light)
|
||||
// Text("\(log.reps)")
|
||||
// }
|
||||
// .font(.title3)
|
||||
// .lineLimit(1)
|
||||
// .minimumScaleFactor(0.5)
|
||||
// .layoutPriority(1)
|
||||
//
|
||||
// Text(log.status?.name ?? "Not Started")
|
||||
// .foregroundStyle(Color.accentColor)
|
||||
// }
|
||||
// .padding()
|
||||
// }
|
||||
//}
|
@ -0,0 +1,35 @@
|
||||
////
|
||||
//// ExerciseProgressControlView.swift
|
||||
//// Workouts
|
||||
////
|
||||
//// Created by rzen on 7/20/25 at 7:19 PM.
|
||||
////
|
||||
//// Copyright 2025 Rouslan Zenetl. All Rights Reserved.
|
||||
////
|
||||
//
|
||||
//import SwiftUI
|
||||
//import SwiftData
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//// Detail view shown as the first item in the exercise progress carousel
|
||||
//
|
||||
//
|
||||
//// Helper extension to safely access array elements
|
||||
////extension Array {
|
||||
//// subscript(safe index: Index) -> Element? {
|
||||
//// return indices.contains(index) ? self[index] : nil
|
||||
//// }
|
||||
////}
|
||||
//
|
||||
////#Preview {
|
||||
//// let container = AppContainer.preview
|
||||
//// let workout = Workout(start: Date(), end: nil, split: nil)
|
||||
//// let log = WorkoutLog(workout: workout, exerciseName: "Bench Press", date: Date(), sets: 3, reps: 10, weight: 135)
|
||||
////
|
||||
//// ExerciseProgressControlView(log: log)
|
||||
//// .modelContainer(container)
|
||||
////}
|
Reference in New Issue
Block a user