1
0
mirror of https://github.com/yattee/yattee.git synced 2024-12-15 14:50:32 +05:30
yattee/Apple TV/VideosView.swift
Arkadiusz Fal 0e02a6e25a Cells view
2021-06-25 00:13:27 +02:00

19 lines
467 B
Swift

import SwiftUI
struct VideosView: View {
@EnvironmentObject private var state: AppState
@Binding var tabSelection: TabSelection
var videos: [Video]
var body: some View {
Group {
if state.profile.listing == .list {
VideosListView(tabSelection: $tabSelection, videos: videos)
} else {
VideosCellsView(videos: videos, columns: state.profile.cellsColumns)
}
}
}
}