This commit is contained in:
2025-07-15 19:08:28 -04:00
parent 48bbbbf692
commit 2d0e327334
7 changed files with 20 additions and 23 deletions

View File

@ -18,13 +18,18 @@ struct SplitExerciseAssignmentAddEditView: View {
var body: some View {
NavigationStack {
Form {
Section(header: Text("Sets/Reps")) {
Section (header: Text("Setup")) {
TextEditor(text: $model.setup)
.frame(minHeight: 60)
}
Section (header: Text("Sets/Reps")) {
Stepper("Sets: \(model.sets)", value: $model.sets, in: 1...10)
Stepper("Reps: \(model.reps)", value: $model.reps, in: 1...50)
}
// Weight section
Section(header: Text("Weight")) {
Section (header: Text("Weight")) {
HStack {
VStack(alignment: .center) {
Text("\(model.weight) lbs")

View File

@ -30,10 +30,7 @@ struct WorkoutLogView: View {
var body: some View {
Form {
Section {
Text("Started \(workout.label)")
}
Section {
Section (header: Text("\(workout.label)")) {
List {
ForEach (sortedWorkoutLogs) { log in
let badges = log.completed ? [Badge(text: "Completed", color: .green)] : []

View File

@ -1,11 +0,0 @@
import SwiftUI
struct WorkoutView: View {
var body: some View {
Text("Workout View")
}
}
#Preview {
WorkoutView()
}