add Workout, Exercise and their Library, Add, and Details views
This commit is contained in:
@@ -13,14 +13,14 @@ struct ContentView: View {
|
||||
|
||||
var body: some View {
|
||||
TabView {
|
||||
WorkoutLibraryView()
|
||||
WorkoutLibrary()
|
||||
.tabItem {
|
||||
Image(systemName: "gauge.with.needle.fill")
|
||||
Image(systemName: "figure.run.square.stack")
|
||||
Text("Workouts")
|
||||
}
|
||||
ExerciseLibraryView()
|
||||
ExerciseLibrary()
|
||||
.tabItem {
|
||||
Image(systemName: "figure.run.square.stack.fill")
|
||||
Image(systemName: "figure.run")
|
||||
Text("Exercises")
|
||||
}
|
||||
Text("Settings")
|
||||
@@ -34,5 +34,5 @@ struct ContentView: View {
|
||||
|
||||
#Preview {
|
||||
ContentView()
|
||||
.modelContainer(for: [Exercise.self, Workout.self], inMemory: true)
|
||||
.modelContainer(SampleData.shared.modelContainer)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user