Load images with low priority

This commit is contained in:
Arkadiusz Fal
2022-11-10 19:11:19 +01:00
parent 402d1a2f79
commit 4d94126abd
8 changed files with 8 additions and 12 deletions

View File

@@ -38,7 +38,7 @@ struct ChannelCell: View {
}
.foregroundColor(.secondary)
WebImage(url: channel.thumbnailURL)
WebImage(url: channel.thumbnailURL, options: [.lowPriority])
.resizable()
.placeholder {
Rectangle().fill(Color("PlaceholderColor"))

View File

@@ -37,7 +37,7 @@ struct ChannelPlaylistCell: View {
}
.foregroundColor(.secondary)
WebImage(url: playlist.thumbnailURL)
WebImage(url: playlist.thumbnailURL, options: [.lowPriority])
.resizable()
.placeholder {
Rectangle().fill(Color("PlaceholderColor"))

View File

@@ -274,7 +274,7 @@ struct ControlsBar: View {
private var authorAvatar: some View {
Group {
if let url = model.currentItem?.video?.channel.thumbnailURL {
WebImage(url: url)
WebImage(url: url, options: [.lowPriority])
.resizable()
.placeholder {
Rectangle().fill(Color("PlaceholderColor"))