mirror of
git://jb55.com/damus
synced 2024-09-18 19:23:49 +00:00
perf: remove zstack on profile pictures
helps a bit? I think?
This commit is contained in:
parent
76a6dbc406
commit
36acdf420e
@ -45,9 +45,6 @@ struct InnerProfilePicView: View {
|
||||
}
|
||||
|
||||
var body: some View {
|
||||
ZStack {
|
||||
Color(uiColor: .systemBackground)
|
||||
|
||||
KFAnimatedImage(url)
|
||||
.imageContext(.pfp, disable_animation: disable_animation)
|
||||
.onFailure(fallbackUrl: fallbackUrl, cacheKey: url?.absoluteString)
|
||||
@ -59,13 +56,13 @@ struct InnerProfilePicView: View {
|
||||
Placeholder
|
||||
}
|
||||
.scaledToFill()
|
||||
}
|
||||
.frame(width: size, height: size)
|
||||
.clipShape(Circle())
|
||||
.overlay(Circle().stroke(highlight_color(highlight), lineWidth: pfp_line_width(highlight)))
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
struct ProfilePicView: View {
|
||||
let pubkey: Pubkey
|
||||
let size: CGFloat
|
||||
|
Loading…
Reference in New Issue
Block a user