Show selected content type in tvOS Type filter button

Display the current selection (All/Videos/Playlists/Channels) instead
of the static "Type" label so users can see the active filter at a
glance.
This commit is contained in:
Arkadiusz Fal
2026-04-13 23:25:55 +02:00
parent d8722e6150
commit 454f10b3ab
2 changed files with 2 additions and 2 deletions

View File

@@ -128,7 +128,7 @@ struct InstanceBrowseView: View {
// Type filter
filterMenu(
title: String(localized: "search.filters.type"),
title: (searchViewModel?.filters.type ?? .video).title,
selection: Binding(
get: { searchViewModel?.filters.type ?? .video },
set: { searchViewModel?.filters.type = $0 }

View File

@@ -194,7 +194,7 @@ struct SearchView: View {
// Type filter
filterMenu(
title: String(localized: "search.filters.type"),
title: (searchViewModel?.filters.type ?? .video).title,
selection: Binding(
get: { searchViewModel?.filters.type ?? .video },
set: { searchViewModel?.filters.type = $0 }