Details channel avatar performance improvement

This commit is contained in:
Arkadiusz Fal
2023-07-22 19:55:36 +02:00
parent 98d26c37ff
commit 52dad5942e
2 changed files with 26 additions and 31 deletions

View File

@@ -19,19 +19,14 @@ struct ChannelAvatarView: View {
ThumbnailView(url: url)
} else {
ZStack {
Color(white: 0.6)
.opacity(0.5)
Color("PlaceholderColor")
Group {
if let video, video.isLocal {
Image(systemName: video.localStreamImageSystemName)
} else {
Image(systemName: "play.rectangle")
}
if let video, video.isLocal {
Image(systemName: video.localStreamImageSystemName)
.foregroundColor(.accentColor)
.font(.system(size: 20))
.contentShape(Rectangle())
}
.foregroundColor(.accentColor)
.font(.system(size: 20))
.contentShape(Rectangle())
}
.onAppear(perform: updateURL)
}