parent
f4d95e6755
commit
2bea2365a0
|
@ -14,26 +14,27 @@ struct FollowCreatorView: View {
|
||||||
var body: some View {
|
var body: some View {
|
||||||
BaseView(isLoading: $viewModel.isLoading) {
|
BaseView(isLoading: $viewModel.isLoading) {
|
||||||
VStack(spacing: 0) {
|
VStack(spacing: 0) {
|
||||||
DetailNavigationBar(title: "팔로잉 채널리스트")
|
DetailNavigationBar(title: "팔로잉 리스트")
|
||||||
|
|
||||||
HStack(spacing: 0) {
|
HStack(spacing: 0) {
|
||||||
Text("총 ")
|
Text("총 ")
|
||||||
.font(.custom(Font.medium.rawValue, size: 13.3))
|
.font(.custom(Font.medium.rawValue, size: 13.3))
|
||||||
.foregroundColor(Color(hex: "eeeeee"))
|
.foregroundColor(Color.grayee)
|
||||||
|
|
||||||
Text("\(viewModel.totalCount)")
|
Text("\(viewModel.totalCount)")
|
||||||
.font(.custom(Font.medium.rawValue, size: 13.3))
|
.font(.custom(Font.medium.rawValue, size: 13.3))
|
||||||
.foregroundColor(Color(hex: "dd4500"))
|
.foregroundColor(Color.mainRed3)
|
||||||
|
|
||||||
Text(" 명")
|
Text(" 명")
|
||||||
.font(.custom(Font.medium.rawValue, size: 13.3))
|
.font(.custom(Font.medium.rawValue, size: 13.3))
|
||||||
.foregroundColor(Color(hex: "eeeeee"))
|
.foregroundColor(Color.grayee)
|
||||||
|
|
||||||
Spacer()
|
Spacer()
|
||||||
}
|
}
|
||||||
.padding(.horizontal, 13.3)
|
.padding(.horizontal, 13.3)
|
||||||
.padding(.top, 6.7)
|
.padding(.top, 6.7)
|
||||||
|
|
||||||
|
if viewModel.totalCount > 0 {
|
||||||
ScrollView(.vertical, showsIndicators: false) {
|
ScrollView(.vertical, showsIndicators: false) {
|
||||||
VStack(spacing: 13.3) {
|
VStack(spacing: 13.3) {
|
||||||
ForEach(0..<viewModel.creatorList.count, id: \.self) { index in
|
ForEach(0..<viewModel.creatorList.count, id: \.self) { index in
|
||||||
|
@ -58,6 +59,12 @@ struct FollowCreatorView: View {
|
||||||
}
|
}
|
||||||
.padding(.top, 13.3)
|
.padding(.top, 13.3)
|
||||||
}
|
}
|
||||||
|
} else {
|
||||||
|
Text("팔로우 중인 채널이 없습니다.")
|
||||||
|
.font(.custom(Font.medium.rawValue, size: 13.3))
|
||||||
|
.foregroundColor(Color.grayee)
|
||||||
|
.frame(maxHeight: .infinity)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
.onAppear {
|
.onAppear {
|
||||||
viewModel.getFollowedCreatorAllList()
|
viewModel.getFollowedCreatorAllList()
|
||||||
|
@ -69,7 +76,7 @@ struct FollowCreatorView: View {
|
||||||
.padding(.vertical, 13.3)
|
.padding(.vertical, 13.3)
|
||||||
.frame(width: screenSize().width - 66.7, alignment: .center)
|
.frame(width: screenSize().width - 66.7, alignment: .center)
|
||||||
.font(.custom(Font.medium.rawValue, size: 12))
|
.font(.custom(Font.medium.rawValue, size: 12))
|
||||||
.background(Color(hex: "3bb9f1"))
|
.background(Color.button)
|
||||||
.foregroundColor(Color.white)
|
.foregroundColor(Color.white)
|
||||||
.multilineTextAlignment(.leading)
|
.multilineTextAlignment(.leading)
|
||||||
.cornerRadius(20)
|
.cornerRadius(20)
|
||||||
|
|
|
@ -72,8 +72,8 @@ struct MyPageView: View {
|
||||||
Text("내 채널 보기")
|
Text("내 채널 보기")
|
||||||
.frame(width: screenSize().width - 26.7, height: 46.7)
|
.frame(width: screenSize().width - 26.7, height: 46.7)
|
||||||
.font(.custom(Font.bold.rawValue, size: 15.3))
|
.font(.custom(Font.bold.rawValue, size: 15.3))
|
||||||
.foregroundColor(Color(hex: "eeeeee"))
|
.foregroundColor(Color.grayee)
|
||||||
.background(Color(hex: "3bb9f1"))
|
.background(Color.button)
|
||||||
.cornerRadius(6.7)
|
.cornerRadius(6.7)
|
||||||
.padding(.top, 26.7)
|
.padding(.top, 26.7)
|
||||||
.onTapGesture {
|
.onTapGesture {
|
||||||
|
@ -81,6 +81,21 @@ struct MyPageView: View {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
HStack(spacing: 8) {
|
||||||
|
Text("팔로잉 리스트")
|
||||||
|
.frame(maxWidth: .infinity)
|
||||||
|
.padding(.vertical, 13.3)
|
||||||
|
.font(.custom(Font.bold.rawValue, size: 15.3))
|
||||||
|
.foregroundColor(Color.grayee)
|
||||||
|
.background(Color.button)
|
||||||
|
.cornerRadius(6.7)
|
||||||
|
.onTapGesture {
|
||||||
|
AppState.shared.setAppStep(step: .followingList)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
.padding(.top, 26.7)
|
||||||
|
.padding(.horizontal, 13.3)
|
||||||
|
|
||||||
if UserDefaults.int(forKey: .userId) != 17958 {
|
if UserDefaults.int(forKey: .userId) != 17958 {
|
||||||
CanCardView(data: data) {
|
CanCardView(data: data) {
|
||||||
viewModel.getMypage()
|
viewModel.getMypage()
|
||||||
|
@ -149,7 +164,7 @@ struct MyPageView: View {
|
||||||
.padding(.vertical, 13.3)
|
.padding(.vertical, 13.3)
|
||||||
.frame(width: geo.size.width - 66.7, alignment: .center)
|
.frame(width: geo.size.width - 66.7, alignment: .center)
|
||||||
.font(.custom(Font.medium.rawValue, size: 12))
|
.font(.custom(Font.medium.rawValue, size: 12))
|
||||||
.background(Color(hex: "9970ff"))
|
.background(Color.button)
|
||||||
.foregroundColor(Color.white)
|
.foregroundColor(Color.white)
|
||||||
.multilineTextAlignment(.center)
|
.multilineTextAlignment(.center)
|
||||||
.cornerRadius(20)
|
.cornerRadius(20)
|
||||||
|
|
Loading…
Reference in New Issue