Files
platform/ios/Platform 1.44.16 AM/Platform/ContentView.swift
Yusuf Suleman fdb8aeba8a
All checks were successful
Security Checks / dependency-audit (push) Successful in 12s
Security Checks / secret-scanning (push) Successful in 3s
Security Checks / dockerfile-lint (push) Successful in 3s
restore: original UI views from first build, keep fixed models/API
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-04-03 01:54:46 -05:00

38 lines
870 B
Swift

import SwiftUI
struct ContentView: View {
@Environment(AuthManager.self) private var authManager
var body: some View {
Group {
if authManager.isCheckingAuth {
LoadingView(message: "Checking session...")
} else if authManager.isAuthenticated {
MainTabView()
} else {
LoginView()
}
}
.task {
await authManager.checkAuth()
}
}
}
struct MainTabView: View {
var body: some View {
TabView {
HomeView()
.tabItem {
Label("Home", systemImage: "house.fill")
}
FitnessTabView()
.tabItem {
Label("Fitness", systemImage: "flame.fill")
}
}
.tint(Color.accentWarm)
}
}