Rename TVSettingsContainer to TVSidebarDetailContainer

The container is now used beyond settings (Open URL and Remote Control
tabs), so the name is broadened to reflect its general role as a
tvOS sidebar-decorated detail container.
This commit is contained in:
Arkadiusz Fal
2026-04-16 06:52:28 +02:00
parent 29e8d64c35
commit b8390577cc
3 changed files with 15 additions and 15 deletions

View File

@@ -60,7 +60,7 @@ struct SourcesListView: View {
}
#if os(tvOS)
.navigationDestination(isPresented: $showingAddSheet) {
TVSettingsContainer(systemImage: "plus.circle", title: String(localized: "sources.newSource")) { AddSourceView() }
TVSidebarDetailContainer(systemImage: "plus.circle", title: String(localized: "sources.newSource")) { AddSourceView() }
}
#else
.sheet(isPresented: $showingAddSheet) {
@@ -69,7 +69,7 @@ struct SourcesListView: View {
#endif
#if os(tvOS)
.navigationDestination(item: $sourceToEdit) { source in
TVSettingsContainer(systemImage: "pencil.circle", title: String(localized: "sources.editSource")) { EditSourceView(source: source) }
TVSidebarDetailContainer(systemImage: "pencil.circle", title: String(localized: "sources.editSource")) { EditSourceView(source: source) }
}
#else
.sheet(item: $sourceToEdit) { source in