mirror of
https://github.com/yattee/yattee.git
synced 2024-11-14 01:58:24 +00:00
22 lines
466 B
Swift
22 lines
466 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)
|
|
}
|
|
}
|
|
}
|
|
}
|