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)
return standardCount < 2 ? 2 : standardCount
#elseif os(tvOS)
return Int(Int(geometryWidth) / 400)
return 4
#else
return standardCount < 1 ? 1 : standardCount
#endif
-1
View File
@@ -13,7 +13,6 @@ struct MainView: View {
ForEach(NavigationPage.allCases, id: \.self) { page in
NavigationStackCompat {
page.contentView
.navigationTitle(page.title)
.focusSection()
}
.tag(page)