// // UserProfileDonationView.swift // SodaLive // // Created by klaus on 2023/08/11. // import SwiftUI import Kingfisher struct UserProfileDonationView: View { let userId: Int let donationRankingResponse: [UserDonationRankingResponse] let crowns = ["img_rank_1", "img_rank_2", "img_rank_3"] var body: some View { VStack(alignment: .leading, spacing: 14) { HStack(spacing: 0) { Text("후원랭킹") .appFont(size: 26, weight: .bold) .foregroundColor(Color.white) Spacer() Text("전체보기") .appFont(size: 14, weight: .light) .foregroundColor(Color(hex: "78909C")) .onTapGesture { AppState.shared.setAppStep(step: .userProfileDonationAll(userId: userId)) } } .padding(.horizontal, 24) ScrollView(.horizontal, showsIndicators: false) { HStack(spacing: 13.3) { ForEach(0..