mirror of
https://github.com/yattee/yattee.git
synced 2025-10-13 02:48:27 +00:00
Add Piped support
This commit is contained in:
@@ -4,7 +4,11 @@ import SwiftUI
|
||||
struct SubscriptionsView: View {
|
||||
@StateObject private var store = Store<[Video]>()
|
||||
|
||||
@EnvironmentObject<InvidiousAPI> private var api
|
||||
@EnvironmentObject<AccountsModel> private var accounts
|
||||
|
||||
var api: InvidiousAPI {
|
||||
accounts.invidious
|
||||
}
|
||||
|
||||
var feed: Resource {
|
||||
api.feed
|
||||
@@ -17,10 +21,7 @@ struct SubscriptionsView: View {
|
||||
.onAppear {
|
||||
loadResources()
|
||||
}
|
||||
.onChange(of: api.account) { _ in
|
||||
loadResources(force: true)
|
||||
}
|
||||
.onChange(of: feed) { _ in
|
||||
.onChange(of: accounts.account) { _ in
|
||||
loadResources(force: true)
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user