watchOS Account profile page

This commit is contained in:
2025-10-30 00:26:32 +08:00
parent 44c5d91620
commit e2369c40db
13 changed files with 572 additions and 4 deletions

View File

@@ -15,6 +15,7 @@ struct ContentView: View {
enum Panel: Hashable {
case explore
case notifications
case account
}
var body: some View {
@@ -22,6 +23,7 @@ struct ContentView: View {
List(selection: $selection) {
Label("Explore", systemImage: "globe").tag(Panel.explore)
Label("Notifications", systemImage: "bell").tag(Panel.notifications)
Label("Account", systemImage: "person.circle").tag(Panel.account)
}
.listStyle(.automatic)
} detail: {
@@ -32,6 +34,9 @@ struct ContentView: View {
case .notifications:
NotificationView()
.environmentObject(appState)
case .account:
AccountView()
.environmentObject(appState)
case .none:
Text("Select a panel")
}