Finish add support for tvOS
This commit is contained in:
@@ -25,11 +25,10 @@ struct ContentView: View {
|
||||
ForEach(NavigationPage.allCases.filter { it in
|
||||
it.visible(extensionProfile)
|
||||
}, id: \.self) { page in
|
||||
NavigationView {
|
||||
NavigationStackCompat {
|
||||
page.contentView
|
||||
.focusSection()
|
||||
}
|
||||
.navigationViewStyle(.stack)
|
||||
.tag(page)
|
||||
.tabItem { page.label }
|
||||
}
|
||||
@@ -49,11 +48,10 @@ struct ContentView: View {
|
||||
ForEach(NavigationPage.allCases.filter { it in
|
||||
it.visible(nil)
|
||||
}, id: \.self) { page in
|
||||
NavigationView {
|
||||
NavigationStackCompat {
|
||||
page.contentView
|
||||
.focusSection()
|
||||
}
|
||||
.navigationViewStyle(.stack)
|
||||
.tag(page)
|
||||
.tabItem { page.label }
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user