Minor fixes, split files into folders

This commit is contained in:
Arkadiusz Fal
2021-08-20 00:38:31 +02:00
parent c1d9e02475
commit ea634390a6
26 changed files with 101 additions and 46 deletions

View File

@@ -0,0 +1,24 @@
import SwiftUI
struct SubscriptionsView: View {
@ObservedObject private var store = Store<[Video]>()
var resource = InvidiousAPI.shared.subscriptions
init() {
resource.addObserver(store)
}
var body: some View {
VideosView(videos: store.collection)
.onAppear {
resource.loadIfNeeded()
}
.refreshable {
resource.load()
}
#if !os(tvOS)
.navigationTitle("Subscriptions")
#endif
}
}