From 85150a5b61c2679b16e7827bfb8d1bb7c0334b39 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=B8=96=E7=95=8C?= Date: Thu, 9 Nov 2023 15:45:01 +0800 Subject: [PATCH] Minor tvOS fixes --- ApplicationLibrary/Views/Groups/GroupView.swift | 2 +- SFT/MainView.swift | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/ApplicationLibrary/Views/Groups/GroupView.swift b/ApplicationLibrary/Views/Groups/GroupView.swift index 03b12a6..8d06140 100644 --- a/ApplicationLibrary/Views/Groups/GroupView.swift +++ b/ApplicationLibrary/Views/Groups/GroupView.swift @@ -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 diff --git a/SFT/MainView.swift b/SFT/MainView.swift index 88b4bf2..ab283aa 100644 --- a/SFT/MainView.swift +++ b/SFT/MainView.swift @@ -13,7 +13,6 @@ struct MainView: View { ForEach(NavigationPage.allCases, id: \.self) { page in NavigationStackCompat { page.contentView - .navigationTitle(page.title) .focusSection() } .tag(page)