From b8fbb664d580c9908258e9f5b027e9c5a54d8f0e Mon Sep 17 00:00:00 2001 From: Yu Sung Date: Fri, 15 Dec 2023 16:49:18 +0900 Subject: [PATCH] =?UTF-8?q?=ED=81=AC=EB=A6=AC=EC=97=90=EC=9D=B4=ED=84=B0?= =?UTF-8?q?=20=EC=B1=84=EB=84=90=20-=20=ED=95=A8=EA=BB=98=20=EB=93=A4?= =?UTF-8?q?=EC=9C=BC=EB=A9=B4=20=EC=A2=8B=EC=9D=80=20=EC=B1=84=EB=84=90=20?= =?UTF-8?q?=EC=A0=9C=EA=B1=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../UserProfileSimilarCreatorView.swift | 55 ------------------- .../Explorer/Profile/UserProfileView.swift | 53 ++++++------------ 2 files changed, 18 insertions(+), 90 deletions(-) delete mode 100644 SodaLive/Sources/Explorer/Profile/UserProfileSimilarCreatorView.swift diff --git a/SodaLive/Sources/Explorer/Profile/UserProfileSimilarCreatorView.swift b/SodaLive/Sources/Explorer/Profile/UserProfileSimilarCreatorView.swift deleted file mode 100644 index ac973ac..0000000 --- a/SodaLive/Sources/Explorer/Profile/UserProfileSimilarCreatorView.swift +++ /dev/null @@ -1,55 +0,0 @@ -// -// UserProfileSimilarCreatorView.swift -// SodaLive -// -// Created by klaus on 2023/08/11. -// - -import SwiftUI -import Kingfisher - -struct UserProfileSimilarCreatorView: View { - - let creators: [SimilarCreatorResponse] - let onClickCreator: (Int) -> Void - - var body: some View { - VStack(alignment: .leading, spacing: 26.7) { - Text("함께 들으면 좋은 채널") - .font(.custom(Font.bold.rawValue, size: 16.7)) - .foregroundColor(Color(hex: "eeeeee")) - - VStack(spacing: 10) { - ForEach(0.. 0 { - VStack(spacing: 26.7) { - UserProfileSimilarCreatorView( - creators: creatorProfile.similarCreatorList, - onClickCreator: { viewModel.getCreatorProfile(userId: $0) } - ) - .padding(.horizontal, 13.3) - - Rectangle() - .frame(height: 6.7) - .foregroundColor(Color(hex: "909090").opacity(0.5)) - } - .padding(.top, 26.7) - } - - UserProfileFanTalkView( - userId: userId, - cheers: creatorProfile.cheers, - errorPopup: { message in - viewModel.errorMessage = message - viewModel.isShowPopup = true - }, - reportPopup: { cheerId in - viewModel.cheersId = cheerId - viewModel.isShowCheersReportView = true - }, - deletePopup: { cheerId in - viewModel.cheersId = cheerId - viewModel.isShowCheersDeleteView = true - }, - isLoading: $viewModel.isLoading - ) - .padding(.top, 26.7) - } + UserProfileFanTalkView( + userId: userId, + cheers: creatorProfile.cheers, + errorPopup: { message in + viewModel.errorMessage = message + viewModel.isShowPopup = true + }, + reportPopup: { cheerId in + viewModel.cheersId = cheerId + viewModel.isShowCheersReportView = true + }, + deletePopup: { cheerId in + viewModel.cheersId = cheerId + viewModel.isShowCheersDeleteView = true + }, + isLoading: $viewModel.isLoading + ) + .padding(.top, 26.7) } } }