Improve dashboard
This commit is contained in:
+10
-1
@@ -24,7 +24,16 @@ struct MainView: View {
|
||||
}
|
||||
}
|
||||
} else {
|
||||
ContentView()
|
||||
TabView(selection: $selection) {
|
||||
ForEach(NavigationPage.allCases, id: \.self) { page in
|
||||
NavigationStackCompat {
|
||||
page.contentView
|
||||
.navigationTitle(page.title)
|
||||
}
|
||||
.tag(page)
|
||||
.tabItem { page.label }
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
.alertBinding($alert)
|
||||
|
||||
Reference in New Issue
Block a user