Minor tvOS fixes

This commit is contained in:
世界
2023-11-09 15:45:08 +08:00
parent 80a65f9095
commit 85150a5b61
2 changed files with 1 additions and 2 deletions
@@ -132,7 +132,7 @@ public struct GroupView: View {
#if os(iOS) #if os(iOS)
return standardCount < 2 ? 2 : standardCount return standardCount < 2 ? 2 : standardCount
#elseif os(tvOS) #elseif os(tvOS)
return Int(Int(geometryWidth) / 400) return 4
#else #else
return standardCount < 1 ? 1 : standardCount return standardCount < 1 ? 1 : standardCount
#endif #endif
-1
View File
@@ -13,7 +13,6 @@ struct MainView: View {
ForEach(NavigationPage.allCases, id: \.self) { page in ForEach(NavigationPage.allCases, id: \.self) { page in
NavigationStackCompat { NavigationStackCompat {
page.contentView page.contentView
.navigationTitle(page.title)
.focusSection() .focusSection()
} }
.tag(page) .tag(page)