wip
This commit is contained in:
@ -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")
|
||||
|
@ -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)] : []
|
||||
|
@ -1,11 +0,0 @@
|
||||
import SwiftUI
|
||||
|
||||
struct WorkoutView: View {
|
||||
var body: some View {
|
||||
Text("Workout View")
|
||||
}
|
||||
}
|
||||
|
||||
#Preview {
|
||||
WorkoutView()
|
||||
}
|
Reference in New Issue
Block a user