39 lines
760 B
Swift
39 lines
760 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
|
|
|
|
var body: some View {
|
|
TabView {
|
|
WorkoutLibraryView()
|
|
.tabItem {
|
|
Image(systemName: "gauge.with.needle.fill")
|
|
Text("Workouts")
|
|
}
|
|
ExerciseLibraryView()
|
|
.tabItem {
|
|
Image(systemName: "figure.run.square.stack.fill")
|
|
Text("Exercises")
|
|
}
|
|
Text("Settings")
|
|
.tabItem {
|
|
Image(systemName: "gear")
|
|
Text("Settings")
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
#Preview {
|
|
ContentView()
|
|
.modelContainer(for: [Exercise.self, Workout.self], inMemory: true)
|
|
}
|