yattee/Apple TV/SubscriptionsView.swift
2021-06-27 01:29:55 +02:00

18 lines
331 B
Swift

import SwiftUI
struct SubscriptionsView: View {
@ObservedObject private var provider = SubscriptionVideosProvider()
var body: some View {
VideosView(videos: videos)
}
var videos: [Video] {
if provider.videos.isEmpty {
provider.load()
}
return provider.videos
}
}