47 lines
947 B
Swift
47 lines
947 B
Swift
//
|
|
// ContentView.swift
|
|
// WorkoutsPlus
|
|
//
|
|
// Created by Felix Förtsch on 13.08.24.
|
|
//
|
|
|
|
import SwiftUI
|
|
import SwiftData
|
|
|
|
struct ContentView: View {
|
|
@Environment(\.modelContext) private var modelContext
|
|
@Default(\.isOnboarding) var isOnboarding
|
|
|
|
var body: some View {
|
|
TabView {
|
|
// WorkoutLog()
|
|
WorkoutLibrary()
|
|
.tabItem {
|
|
Image(systemName: "figure.run.square.stack")
|
|
Text("Workouts")
|
|
}
|
|
ExerciseLibrary()
|
|
.tabItem {
|
|
Image(systemName: "figure.run")
|
|
Text("Exercises")
|
|
}
|
|
DebugList()
|
|
.tabItem {
|
|
Image(systemName: "hammer")
|
|
Text("Debug")
|
|
}
|
|
Settings()
|
|
.tabItem {
|
|
Image(systemName: "gear")
|
|
Text("Settings")
|
|
}
|
|
}
|
|
.sheet(isPresented: $isOnboarding) { Onboarding() }
|
|
}
|
|
}
|
|
|
|
#Preview {
|
|
ContentView()
|
|
.modelContainer(SampleData.shared.modelContainer)
|
|
}
|