1
0
mirror of https://github.com/yattee/yattee.git synced 2024-12-14 22:30:32 +05:30
yattee/Apple TV/VideosView.swift

22 lines
466 B
Swift
Raw Normal View History

2021-06-27 04:59:55 +05:30
import Defaults
2021-06-12 03:10:35 +05:30
import SwiftUI
struct VideosView: View {
@State private var profile = Profile()
2021-07-08 04:31:54 +05:30
2021-06-27 04:59:55 +05:30
@Default(.layout) var layout
@Default(.tabSelection) var tabSelection
2021-07-08 04:09:18 +05:30
var videos: [Video]
2021-07-08 04:31:54 +05:30
2021-06-12 03:10:35 +05:30
var body: some View {
2021-07-08 04:09:18 +05:30
Group {
2021-06-27 05:20:32 +05:30
if layout == .cells {
2021-06-26 17:07:24 +05:30
VideosCellsView(videos: videos, columns: self.profile.cellsColumns)
2021-06-27 05:20:32 +05:30
} else {
VideosListView(videos: videos)
2021-06-12 03:10:35 +05:30
}
}
}
}