From 039355c088285ee213407ecc21df3f0b64a77cc5 Mon Sep 17 00:00:00 2001 From: Yu Sung Date: Tue, 17 Mar 2026 16:04:13 +0900 Subject: [PATCH] =?UTF-8?q?fix(profile):=20=ED=94=84=EB=A1=9C=ED=95=84=20?= =?UTF-8?q?=ED=9B=84=EC=9B=90=20=EB=9E=AD=ED=82=B9=20=EC=A0=84=EC=B2=B4?= =?UTF-8?q?=EB=B3=B4=EA=B8=B0=20=EC=99=95=EA=B4=80=20UI=20=EC=9C=84?= =?UTF-8?q?=EC=B9=98=EC=99=80=20=ED=81=AC=EA=B8=B0=EB=A5=BC=20=ED=86=B5?= =?UTF-8?q?=EC=9D=BC=ED=95=9C=EB=8B=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Profile/UserProfileDonationAllView.swift | 37 ++++++------------- 1 file changed, 12 insertions(+), 25 deletions(-) diff --git a/SodaLive/Sources/Explorer/Profile/UserProfileDonationAllView.swift b/SodaLive/Sources/Explorer/Profile/UserProfileDonationAllView.swift index 875215b..34d4154 100644 --- a/SodaLive/Sources/Explorer/Profile/UserProfileDonationAllView.swift +++ b/SodaLive/Sources/Explorer/Profile/UserProfileDonationAllView.swift @@ -213,44 +213,31 @@ struct UserProfileDonationAllItemView: View { let withDonationCan: Bool let itemCount: Int - let rankingCrawns = ["ic_crown_1", "ic_crown_2", "ic_crown_3"] - let rankingColors = [ - [Color(hex: "ffdc00"), Color(hex: "ffb600")], - [Color(hex: "ffffff"), Color(hex: "9f9f9f")], - [Color(hex: "e6a77a"), Color(hex: "c67e4a")], - [Color(hex: "ffffff").opacity(0), Color(hex: "ffffff").opacity(0)] - ] + let crowns = ["img_rank_1", "img_rank_2", "img_rank_3"] var body: some View { HStack(spacing: 0) { - ZStack { + ZStack(alignment: .center) { KFImage(URL(string: item.profileImage)) .cancelOnDisappear(true) - .downsampling(size: CGSize(width: 60, height: 60)) + .downsampling( + size: CGSize( + width: 60, + height: 60 + ) + ) .resizable() .scaledToFill() .frame(width: 60, height: 60, alignment: .top) .clipShape(Circle()) - .overlay( - Circle() - .stroke( - AngularGradient(colors: rankingColors[index < 4 ? index : 3], center: .center), - lineWidth: 3 - ) - ) if index < 3 { - VStack(alignment: .trailing, spacing: 0) { - Spacer() - - Image(rankingCrawns[index]) - .resizable() - .frame(width: 25, height: 25) - } - .frame(width: 63, height: 63, alignment: .trailing) + Image(crowns[index]) + .resizable() + .frame(width: 77, height: 75) } } - .frame(width: 63, height: 63) + .frame(width: 77, height: 75) Text("\(index + 1)") .appFont(size: 13.3, weight: .bold)