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

@@ -103,7 +103,7 @@ struct CommentView: View {
}
private var authorAvatar: some View {
WebImage(url: URL(string: comment.authorAvatarURL)!)
WebImage(url: URL(string: comment.authorAvatarURL)!, options: [.lowPriority])
.resizable()
.placeholder {
Rectangle().fill(Color("PlaceholderColor"))