From 29e8d64c3574f0c1cdde7e7677eb21a7a296270c Mon Sep 17 00:00:00 2001 From: Arkadiusz Fal Date: Thu, 16 Apr 2026 06:47:01 +0200 Subject: [PATCH] Use settings container layout for tvOS Open URL and Remote Control Wrap OpenLinkView and RemoteControlContentView in TVSettingsContainer on tvOS so they get the same left sidebar with large SF Symbol icon and title as settings detail screens, for visual consistency. --- Yattee/Views/Navigation/UnifiedTabView.swift | 20 +++++++++++++++----- 1 file changed, 15 insertions(+), 5 deletions(-) diff --git a/Yattee/Views/Navigation/UnifiedTabView.swift b/Yattee/Views/Navigation/UnifiedTabView.swift index aacf13f9..d2982e03 100644 --- a/Yattee/Views/Navigation/UnifiedTabView.swift +++ b/Yattee/Views/Navigation/UnifiedTabView.swift @@ -752,8 +752,13 @@ struct UnifiedTabView: View { case .openURL: Tab(value: SidebarItem.openURL) { NavigationStack(path: $openURLPath) { - OpenLinkView() - .withNavigationDestinations() + TVSettingsContainer( + systemImage: SidebarItem.openURL.systemImage, + title: SidebarItem.openURL.title + ) { + OpenLinkView() + } + .withNavigationDestinations() } } label: { Label(SidebarItem.openURL.title, systemImage: SidebarItem.openURL.systemImage) @@ -762,9 +767,14 @@ struct UnifiedTabView: View { case .remoteControl: Tab(value: SidebarItem.remoteControl) { NavigationStack(path: $remoteControlPath) { - RemoteControlContentView(navigationStyle: .link) - .navigationTitle(String(localized: "remoteControl.title")) - .withNavigationDestinations() + TVSettingsContainer( + systemImage: SidebarItem.remoteControl.systemImage, + title: SidebarItem.remoteControl.title + ) { + RemoteControlContentView(navigationStyle: .link) + .navigationTitle(String(localized: "remoteControl.title")) + } + .withNavigationDestinations() } } label: { Label(SidebarItem.remoteControl.title, systemImage: SidebarItem.remoteControl.systemImage)