yattee/Apple TV/VideosView.swift
2021-07-08 00:54:35 +02:00

22 lines
474 B
Swift

import Defaults
import SwiftUI
struct VideosView: View {
@State private var profile = Profile()
@Default(.layout) var layout
@Default(.tabSelection) var tabSelection
var videos: [Video]
var body: some View {
Group {
if layout == .cells {
VideosCellsView(videos: videos, columns: self.profile.cellsColumns)
} else {
VideosListView(videos: videos)
}
}
}
}