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.
This commit is contained in:
Arkadiusz Fal
2026-04-16 06:47:01 +02:00
parent 82a8ac2afa
commit 29e8d64c35

View File

@@ -752,7 +752,12 @@ struct UnifiedTabView: View {
case .openURL:
Tab(value: SidebarItem.openURL) {
NavigationStack(path: $openURLPath) {
TVSettingsContainer(
systemImage: SidebarItem.openURL.systemImage,
title: SidebarItem.openURL.title
) {
OpenLinkView()
}
.withNavigationDestinations()
}
} label: {
@@ -762,8 +767,13 @@ struct UnifiedTabView: View {
case .remoteControl:
Tab(value: SidebarItem.remoteControl) {
NavigationStack(path: $remoteControlPath) {
TVSettingsContainer(
systemImage: SidebarItem.remoteControl.systemImage,
title: SidebarItem.remoteControl.title
) {
RemoteControlContentView(navigationStyle: .link)
.navigationTitle(String(localized: "remoteControl.title"))
}
.withNavigationDestinations()
}
} label: {