크리에이터 채널 - 함께 들으면 좋은 채널 제거
This commit is contained in:
parent
c84f1042e3
commit
b8fbb664d5
|
@ -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..<creators.count, id: \.self) {
|
||||
let creator = creators[$0]
|
||||
HStack(spacing: 13.3) {
|
||||
KFImage(URL(string: creator.profileImage))
|
||||
.resizable()
|
||||
.scaledToFill()
|
||||
.frame(width: 60, height: 60, alignment: .top)
|
||||
.clipShape(Circle())
|
||||
|
||||
VStack(alignment: .leading, spacing: 6.7) {
|
||||
Text(creator.nickname)
|
||||
.font(.custom(Font.medium.rawValue, size: 12))
|
||||
.foregroundColor(Color(hex: "eeeeee"))
|
||||
|
||||
Text(creator.tags.map { "#\($0)" }.joined(separator: " "))
|
||||
.font(.custom(Font.medium.rawValue, size: 11))
|
||||
.foregroundColor(Color(hex: "777777"))
|
||||
}
|
||||
.padding(.trailing, 13.3)
|
||||
|
||||
Spacer()
|
||||
}
|
||||
.contentShape(Rectangle())
|
||||
.onTapGesture {
|
||||
onClickCreator(creator.userId)
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
.frame(width: screenSize().width - 26.7, alignment: .leading)
|
||||
}
|
||||
|
||||
}
|
|
@ -147,41 +147,24 @@ struct UserProfileView: View {
|
|||
.padding(.top, 26.7)
|
||||
}
|
||||
|
||||
VStack(spacing: 0) {
|
||||
if creatorProfile.similarCreatorList.count > 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)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue