Chat room listing

This commit is contained in:
2025-10-30 01:28:36 +08:00
parent b57caf56db
commit 44dbcfdc94
6 changed files with 680 additions and 4 deletions

View File

@@ -14,6 +14,7 @@ struct ContentView: View {
enum Panel: Hashable {
case explore
case chat
case notifications
case account
}
@@ -22,6 +23,7 @@ struct ContentView: View {
NavigationSplitView {
List(selection: $selection) {
Label("Explore", systemImage: "globe").tag(Panel.explore)
Label("Chat", systemImage: "message").tag(Panel.chat)
Label("Notifications", systemImage: "bell").tag(Panel.notifications)
Label("Account", systemImage: "person.circle").tag(Panel.account)
}
@@ -31,6 +33,9 @@ struct ContentView: View {
case .explore:
ExploreView()
.environmentObject(appState)
case .chat:
ChatView()
.environmentObject(appState)
case .notifications:
NotificationView()
.environmentObject(appState)