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

19 lines
467 B
Swift
Raw Normal View History

2021-06-12 03:10:35 +05:30
import SwiftUI
struct VideosView: View {
2021-06-17 15:32:39 +05:30
@EnvironmentObject private var state: AppState
2021-06-12 03:24:00 +05:30
2021-06-12 03:10:35 +05:30
@Binding var tabSelection: TabSelection
var videos: [Video]
var body: some View {
2021-06-24 03:49:58 +05:30
Group {
if state.profile.listing == .list {
VideosListView(tabSelection: $tabSelection, videos: videos)
} else {
VideosCellsView(videos: videos, columns: state.profile.cellsColumns)
2021-06-12 03:10:35 +05:30
}
}
}
}