mirror of
https://github.com/yattee/yattee.git
synced 2026-06-04 13:54:19 +00:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user