damus

nostr ios client
git clone git://jb55.com/damus
Log | Files | Refs | README | LICENSE

commit dba31a9d33f28634efc72fbe0915fbf3615f24fc
parent a69fb5306c3c6dea1c39215596cee652f6f94c73
Author: William Casarin <jb55@jb55.com>
Date:   Tue,  3 Jan 2023 23:37:11 -0800

profile: remove redundant pfp border circle

Diffstat:
Mdamus/Views/ProfileView.swift | 19+++++++------------
1 file changed, 7 insertions(+), 12 deletions(-)

diff --git a/damus/Views/ProfileView.swift b/damus/Views/ProfileView.swift @@ -192,20 +192,15 @@ struct ProfileView: View { let pfp_size: CGFloat = 90.0 HStack(alignment: .center) { - Circle() - .frame(width: pfp_size, height: pfp_size) // Increase this to see a frame. - .foregroundColor(imageBorderColor()) - .overlay{ - ProfilePicView(pubkey: profile.pubkey, size: pfp_size, highlight: .custom(.black, 4.0), profiles: damus_state.profiles) - .onTapGesture { - is_zoomed.toggle() - } - .sheet(isPresented: $is_zoomed) { - ProfilePicView(pubkey: profile.pubkey, size: zoom_size, highlight: .none, profiles: damus_state.profiles) - } + ProfilePicView(pubkey: profile.pubkey, size: pfp_size, highlight: .custom(imageBorderColor(), 4.0), profiles: damus_state.profiles) + .onTapGesture { + is_zoomed.toggle() + } + .sheet(isPresented: $is_zoomed) { + ProfilePicView(pubkey: profile.pubkey, size: zoom_size, highlight: .none, profiles: damus_state.profiles) } .offset(y: -(pfp_size/2.0)) // Increase if set a frame - + Spacer() if let profile = data {