mirror of
https://github.com/yattee/yattee.git
synced 2025-08-06 10:44:06 +00:00
Search history for tab navigation
This commit is contained in:
@@ -79,6 +79,12 @@ struct RecentItem: Defaults.Serializable, Identifiable {
|
||||
id = channel.id
|
||||
title = channel.name
|
||||
}
|
||||
|
||||
init(from query: String) {
|
||||
type = .query
|
||||
id = query
|
||||
title = query
|
||||
}
|
||||
}
|
||||
|
||||
struct RecentItemBridge: Defaults.Bridge {
|
||||
|
@@ -6,6 +6,8 @@ final class SearchState: ObservableObject {
|
||||
@Published var store = Store<[Video]>()
|
||||
@Published var query = SearchQuery()
|
||||
|
||||
@Published var queryText = ""
|
||||
|
||||
@Published var querySuggestions = Store<[String]>()
|
||||
|
||||
private var previousResource: Resource?
|
||||
|
Reference in New Issue
Block a user