mirror of
https://github.com/yattee/yattee.git
synced 2025-08-09 20:24:06 +00:00
Extended Piped support
This commit is contained in:
@@ -6,16 +6,16 @@ struct PopularView: View {
|
||||
|
||||
@EnvironmentObject<AccountsModel> private var accounts
|
||||
|
||||
var resource: Resource {
|
||||
accounts.invidious.popular
|
||||
var resource: Resource? {
|
||||
accounts.api.popular
|
||||
}
|
||||
|
||||
var body: some View {
|
||||
PlayerControlsView {
|
||||
VideosCellsVertical(videos: store.collection)
|
||||
.onAppear {
|
||||
resource.addObserver(store)
|
||||
resource.loadIfNeeded()
|
||||
resource?.addObserver(store)
|
||||
resource?.loadIfNeeded()
|
||||
}
|
||||
#if !os(tvOS)
|
||||
.navigationTitle("Popular")
|
||||
|
Reference in New Issue
Block a user