39 lines
717 B
Swift
39 lines
717 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 {
|
|
WorkoutLibrary()
|
|
.tabItem {
|
|
Image(systemName: "figure.run.square.stack")
|
|
Text("Workouts")
|
|
}
|
|
ExerciseLibrary()
|
|
.tabItem {
|
|
Image(systemName: "figure.run")
|
|
Text("Exercises")
|
|
}
|
|
Text("Settings")
|
|
.tabItem {
|
|
Image(systemName: "gear")
|
|
Text("Settings")
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
#Preview {
|
|
ContentView()
|
|
.modelContainer(SampleData.shared.modelContainer)
|
|
}
|