mirror of
https://github.com/yattee/yattee.git
synced 2025-08-06 10:44:06 +00:00
Remember last used trending category and country
This commit is contained in:
@@ -1,11 +1,13 @@
|
||||
import Defaults
|
||||
import Siesta
|
||||
import SwiftUI
|
||||
|
||||
struct TrendingView: View {
|
||||
@StateObject private var store = Store<[Video]>()
|
||||
|
||||
@State private var category: TrendingCategory = .default
|
||||
@State private var country: Country! = .pl
|
||||
@Default(.trendingCategory) private var category
|
||||
@Default(.trendingCountry) private var country
|
||||
|
||||
@State private var presentingCountrySelection = false
|
||||
|
||||
@EnvironmentObject<InvidiousAPI> private var api
|
||||
|
Reference in New Issue
Block a user