misc ui changes

This commit is contained in:
Trey t
2024-11-25 10:10:46 -08:00
parent 4b6352b8fd
commit 5145896f7a
5 changed files with 9683 additions and 168 deletions

View File

@@ -17,6 +17,7 @@ struct PlanWorkoutView: View {
VStack() {
Text(workout.name)
.font(.title)
.frame(maxWidth: .infinity, alignment: .leading)
Text(selectedDate.formatted(date: .abbreviated, time: .omitted))
.font(.system(size: 28))
@@ -34,20 +35,6 @@ struct PlanWorkoutView: View {
Divider()
HStack {
Button(action: {
planWorkout()
}, label: {
Image(systemName: "plus.app")
.font(.title)
.frame(maxWidth: .infinity, maxHeight: .infinity)
})
.frame(maxWidth: .infinity, alignment: .center)
.frame(height: 44)
.foregroundColor(.blue)
.background(.yellow)
.cornerRadius(8)
.padding()
Button(action: {
dismiss()
}, label: {
@@ -61,6 +48,20 @@ struct PlanWorkoutView: View {
.background(.red)
.cornerRadius(8)
.padding()
Button(action: {
planWorkout()
}, label: {
Image(systemName: "plus.app")
.font(.title)
.frame(maxWidth: .infinity, maxHeight: .infinity)
})
.frame(maxWidth: .infinity, alignment: .center)
.frame(height: 44)
.foregroundColor(.blue)
.background(.yellow)
.cornerRadius(8)
.padding()
}
Spacer()