Files
Project_Velocity/iOS/velocity-edge-phone/EdgeRootView.swift
sayan 84e439712c feat/#24 WebOS Completion (#25)
#24 WebOS Completion

Co-authored-by: Sayan Datta <sayan@Sayans-MacBook-Air.local>
Reviewed-on: sagnik/Project_Velocity#25
2026-04-18 18:59:04 +05:30

41 lines
1.5 KiB
Swift

import SwiftUI
enum EdgeSection: String, CaseIterable, Identifiable {
case alerts = "Alerts"
case leadSummary = "Lead Summary"
case communications = "Communications"
case notes = "Notes"
case transcriptions = "Transcriptions"
case settings = "Settings"
var id: String { rawValue }
}
struct EdgeRootView: View {
@State private var selectedSection: EdgeSection = .alerts
var body: some View {
TabView(selection: $selectedSection) {
EdgeAlertsView()
.tabItem { Label("Alerts", systemImage: "bell.badge") }
.tag(EdgeSection.alerts)
EdgeLeadSummaryView()
.tabItem { Label("Lead", systemImage: "person.text.rectangle") }
.tag(EdgeSection.leadSummary)
EdgeCommunicationsView()
.tabItem { Label("Comms", systemImage: "phone.connection") }
.tag(EdgeSection.communications)
EdgeNotesView()
.tabItem { Label("Notes", systemImage: "square.and.pencil") }
.tag(EdgeSection.notes)
EdgeTranscriptionsView()
.tabItem { Label("Transcripts", systemImage: "waveform.badge.magnifyingglass") }
.tag(EdgeSection.transcriptions)
EdgeSettingsView()
.tabItem { Label("Settings", systemImage: "gearshape") }
.tag(EdgeSection.settings)
}
.tint(Color(red: 0.22, green: 0.60, blue: 0.98))
}
}