yattee/Apple TV/VideosView.swift

19 lines
467 B
Swift
Raw Normal View History

2021-06-11 21:40:35 +00:00
import SwiftUI
struct VideosView: View {
2021-06-17 10:02:39 +00:00
@EnvironmentObject private var state: AppState
2021-06-11 21:54:00 +00:00
2021-06-11 21:40:35 +00:00
@Binding var tabSelection: TabSelection
var videos: [Video]
var body: some View {
2021-06-23 22:19:58 +00:00
Group {
if state.profile.listing == .list {
VideosListView(tabSelection: $tabSelection, videos: videos)
} else {
VideosCellsView(videos: videos, columns: state.profile.cellsColumns)
2021-06-11 21:40:35 +00:00
}
}
}
}