Files
workouts/Workouts/ContentView.swift

58 lines
1.3 KiB
Swift
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

//
// ContentView.swift
// Workouts
//
// Created by rzen on 7/11/25 at 5:04PM.
//
// Copyright 2025 Rouslan Zenetl. All Rights Reserved.
//
import SwiftUI
import SwiftData
struct ContentView: View {
@Environment(\.modelContext) private var modelContext
var body: some View {
TabView {
SplitsView()
.tabItem {
Label("Workouts", systemImage: "figure.strengthtraining.traditional")
}
WorkoutListView()
.tabItem {
Label("Logs", systemImage: "list.bullet.clipboard.fill")
}
NavigationStack {
Text("Reports Placeholder")
.navigationTitle("Reports")
}
.tabItem {
Label("Reports", systemImage: "chart.bar")
}
NavigationStack {
Text("Achivements")
.navigationTitle("Achievements")
}
.tabItem {
Label("Achivements", systemImage: "star.fill")
}
// SettingsView()
// .tabItem {
// Label("Settings", systemImage: "gear")
// }
}
.observeCloudKitChanges()
}
}
#Preview {
ContentView()
}