mirror of
https://github.com/yattee/yattee.git
synced 2024-12-13 13:50:32 +05:30
24 lines
473 B
Swift
24 lines
473 B
Swift
import Siesta
|
|
import SwiftUI
|
|
|
|
struct PlaylistVideosView: View {
|
|
let playlist: Playlist
|
|
|
|
var videos: [ContentItem] {
|
|
ContentItem.array(of: playlist.videos)
|
|
}
|
|
|
|
init(_ playlist: Playlist) {
|
|
self.playlist = playlist
|
|
}
|
|
|
|
var body: some View {
|
|
PlayerControlsView {
|
|
VerticalCells(items: videos)
|
|
#if !os(tvOS)
|
|
.navigationTitle("\(playlist.title) Playlist")
|
|
#endif
|
|
}
|
|
}
|
|
}
|