feat/#24 WebOS Completion (#25)
#24 WebOS Completion Co-authored-by: Sayan Datta <sayan@Sayans-MacBook-Air.local> Reviewed-on: #25
This commit was merged in pull request #25.
This commit is contained in:
40
iOS/velocity-edge-phone/EdgeRootView.swift
Normal file
40
iOS/velocity-edge-phone/EdgeRootView.swift
Normal file
@@ -0,0 +1,40 @@
|
||||
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))
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user