1
0
mirror of https://github.com/yattee/yattee.git synced 2024-12-14 06:10:32 +05:30

Fix search recents on tvOS

This commit is contained in:
Arkadiusz Fal 2022-08-14 18:59:21 +02:00
parent 27d140af01
commit 08c62c1125

View File

@ -311,7 +311,11 @@ struct SearchView: View {
Button {
switch item.type {
case .query:
queryText = item.title
#if os(tvOS)
state.queryText = item.title
#else
queryText = item.title
#endif
state.changeQuery { query in query.query = item.title }
updateFavoriteItem()
@ -351,6 +355,9 @@ struct SearchView: View {
.contextMenu {
removeButton(item)
removeAllButton
#if os(tvOS)
Button("Cancel", role: .cancel) {}
#endif
}
}