36 lines
870 B
Swift
36 lines
870 B
Swift
////
|
|
//// 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)
|
|
////}
|