1
0
mirror of https://github.com/yattee/yattee.git synced 2025-01-06 01:20:31 +05:30
yattee/Apple TV/SubscriptionsView.swift

18 lines
331 B
Swift
Raw Normal View History

2021-06-12 04:19:42 +05:30
import SwiftUI
struct SubscriptionsView: View {
2021-06-26 17:07:24 +05:30
@ObservedObject private var provider = SubscriptionVideosProvider()
2021-06-12 04:19:42 +05:30
var body: some View {
2021-06-27 04:59:55 +05:30
VideosView(videos: videos)
2021-06-12 04:19:42 +05:30
}
var videos: [Video] {
2021-06-26 17:07:24 +05:30
if provider.videos.isEmpty {
provider.load()
}
return provider.videos
2021-06-12 04:19:42 +05:30
}
}