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

29 lines
626 B
Swift
Raw Normal View History

2021-08-30 03:06:18 +05:30
import Siesta
import SwiftUI
struct PlaylistVideosView: View {
let playlist: Playlist
var videos: [ContentItem] {
ContentItem.array(of: playlist.videos)
}
2021-08-30 03:06:18 +05:30
init(_ playlist: Playlist) {
self.playlist = playlist
}
var body: some View {
PlayerControlsView {
VerticalCells(items: videos)
#if !os(tvOS)
.navigationTitle("\(playlist.title) Playlist")
#endif
}
2021-11-02 03:26:18 +05:30
.toolbar {
ToolbarItem {
FavoriteButton(item: FavoriteItem(section: .playlist(playlist.id)))
}
}
2021-08-30 03:06:18 +05:30
}
}