Rename Apple TV folder to tvOS

This commit is contained in:
Arkadiusz Fal
2021-08-03 00:30:39 +02:00
parent 36f94ffd72
commit 2ffe937415
31 changed files with 6 additions and 6 deletions

36
tvOS/ChannelView.swift Normal file
View File

@@ -0,0 +1,36 @@
import Siesta
import SwiftUI
struct ChannelView: View {
@ObservedObject private var store = Store<[Video]>()
var id: String
var resource: Resource {
InvidiousAPI.shared.channelVideos(id)
}
init(id: String) {
self.id = id
resource.addObserver(store)
}
var body: some View {
HStack {
Spacer()
VStack {
Spacer()
VideosView(videos: store.collection)
.onAppear {
resource.loadIfNeeded()
}
Spacer()
}
Spacer()
}
.edgesIgnoringSafeArea(.all)
.background(.ultraThickMaterial)
}
}