46 lines
910 B
Swift
46 lines
910 B
Swift
//
|
|
// ContentView.swift
|
|
// TheNoiseClock
|
|
//
|
|
// Created by Matt Bruce on 9/7/25.
|
|
//
|
|
|
|
import SwiftUI
|
|
|
|
/// Main tab navigation coordinator
|
|
struct ContentView: View {
|
|
|
|
// MARK: - Body
|
|
var body: some View {
|
|
TabView {
|
|
NavigationStack {
|
|
ClockView()
|
|
}
|
|
.tabItem {
|
|
Label("Clock", systemImage: "clock")
|
|
}
|
|
|
|
NavigationStack {
|
|
AlarmView()
|
|
}
|
|
.tabItem {
|
|
Label("Alarms", systemImage: "alarm")
|
|
}
|
|
|
|
NavigationStack {
|
|
NoiseView()
|
|
}
|
|
.tabItem {
|
|
Label("Noise", systemImage: "waveform")
|
|
}
|
|
}
|
|
.accentColor(UIConstants.Colors.accentColor)
|
|
.preferredColorScheme(.dark)
|
|
}
|
|
}
|
|
|
|
// MARK: - Preview
|
|
#Preview {
|
|
ContentView()
|
|
}
|