Hide thumbnail in playlist if not available

This commit is contained in:
Arkadiusz Fal 2022-12-16 12:32:31 +01:00
parent b8f693e213
commit fb22fb762c

View File

@ -136,9 +136,11 @@ struct ChannelPlaylistView: View {
}
} label: {
HStack(spacing: 12) {
ThumbnailView(url: store.item?.thumbnailURL ?? playlist?.thumbnailURL)
if let url = store.item?.thumbnailURL ?? playlist?.thumbnailURL {
ThumbnailView(url: url)
.frame(width: 60, height: 30)
.clipShape(RoundedRectangle(cornerRadius: 2))
}
Text(label)
.font(.headline)