mirror of
https://github.com/yattee/yattee.git
synced 2024-11-14 01:58:24 +00:00
18 lines
331 B
Swift
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
|
|
}
|
|
}
|