크리에이터 채널 - 함께 들으면 좋은 채널 제거
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,22 +147,6 @@ struct UserProfileView: View {
|
||||||
.padding(.top, 26.7)
|
.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(
|
UserProfileFanTalkView(
|
||||||
userId: userId,
|
userId: userId,
|
||||||
cheers: creatorProfile.cheers,
|
cheers: creatorProfile.cheers,
|
||||||
|
@ -185,7 +169,6 @@ struct UserProfileView: View {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
.popup(isPresented: $viewModel.isShowPopup, type: .toast, position: .bottom, autohideIn: 2) {
|
.popup(isPresented: $viewModel.isShowPopup, type: .toast, position: .bottom, autohideIn: 2) {
|
||||||
HStack {
|
HStack {
|
||||||
Spacer()
|
Spacer()
|
||||||
|
|
Loading…
Reference in New Issue