mirror of
https://github.com/yattee/yattee.git
synced 2024-11-10 08:18:19 +00:00
29 lines
626 B
Swift
29 lines
626 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
|
|
}
|
|
.toolbar {
|
|
ToolbarItem {
|
|
FavoriteButton(item: FavoriteItem(section: .playlist(playlist.id)))
|
|
}
|
|
}
|
|
}
|
|
}
|