Finish add support for tvOS

This commit is contained in:
世界
2023-07-29 19:40:38 +08:00
parent bb0385f53c
commit 27ffee06e2
28 changed files with 104 additions and 26 deletions
+2 -4
View File
@@ -25,10 +25,9 @@ struct ContentView: View {
ForEach(NavigationPage.allCases.filter { it in
it.visible(extensionProfile)
}, id: \.self) { page in
NavigationView {
NavigationStackCompat {
page.contentView
}
.navigationViewStyle(.stack)
.tag(page)
.tabItem { page.label }
}
@@ -48,10 +47,9 @@ struct ContentView: View {
ForEach(NavigationPage.allCases.filter { it in
it.visible(nil)
}, id: \.self) { page in
NavigationView {
NavigationStackCompat {
page.contentView
}
.navigationViewStyle(.stack)
.tag(page)
.tabItem { page.label }
}