add UI for adding exercises to workouts

This commit is contained in:
Felix Förtsch
2024-08-22 14:55:59 +02:00
parent 419e2bc699
commit 71719c1f1b
7 changed files with 154 additions and 34 deletions
@@ -14,6 +14,8 @@ struct ExerciseLibrary: View {
@State private var newExercise: Exercise?
// TODO: Add search bar to the top
var body: some View {
NavigationSplitView {
Group {
@@ -50,6 +52,7 @@ struct ExerciseLibrary: View {
AddExercise(exercise: exercise)
}
// TODO: It's possible to add a boolean here ("Terms accepted y/n"). Maybe add this for empty string
.presentationDetents([.medium])
.interactiveDismissDisabled()
}
} detail: {