mirror of
https://github.com/yattee/yattee.git
synced 2026-05-12 18:35:05 +00:00
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:
@@ -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 }
|
||||
|
||||
@@ -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 }
|
||||
|
||||
Reference in New Issue
Block a user