fix repetitive save of WorkoutItem, add: Onboarding, Defaults, Settings, Trainer/Trainee skeletons, reorder files, remove all Bindable
This commit is contained in:
@@ -10,10 +10,11 @@ import SwiftData
|
||||
|
||||
struct ContentView: View {
|
||||
@Environment(\.modelContext) private var modelContext
|
||||
@Default(\.isOnboarding) var isOnboarding
|
||||
|
||||
var body: some View {
|
||||
TabView {
|
||||
WorkoutLog()
|
||||
// WorkoutLog()
|
||||
WorkoutLibrary()
|
||||
.tabItem {
|
||||
Image(systemName: "figure.run.square.stack")
|
||||
@@ -24,7 +25,7 @@ struct ContentView: View {
|
||||
Image(systemName: "figure.run")
|
||||
Text("Exercises")
|
||||
}
|
||||
DebugExerciseList()
|
||||
DebugList()
|
||||
.tabItem {
|
||||
Image(systemName: "hammer")
|
||||
Text("Debug")
|
||||
@@ -35,6 +36,7 @@ struct ContentView: View {
|
||||
Text("Settings")
|
||||
}
|
||||
}
|
||||
.sheet(isPresented: $isOnboarding) { Onboarding() }
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user