마이 페이지
- 팔로잉 리스트 버튼 추가
This commit is contained in:
		| @@ -14,36 +14,37 @@ struct FollowCreatorView: View { | ||||
|     var body: some View { | ||||
|         BaseView(isLoading: $viewModel.isLoading) { | ||||
|             VStack(spacing: 0) { | ||||
|                 DetailNavigationBar(title: "팔로잉 채널리스트") | ||||
|                 DetailNavigationBar(title: "팔로잉 리스트") | ||||
|                  | ||||
|                 HStack(spacing: 0) { | ||||
|                     Text("총  ") | ||||
|                         .font(.custom(Font.medium.rawValue, size: 13.3)) | ||||
|                         .foregroundColor(Color(hex: "eeeeee")) | ||||
|                         .foregroundColor(Color.grayee) | ||||
|                      | ||||
|                     Text("\(viewModel.totalCount)") | ||||
|                         .font(.custom(Font.medium.rawValue, size: 13.3)) | ||||
|                         .foregroundColor(Color(hex: "dd4500")) | ||||
|                         .foregroundColor(Color.mainRed3) | ||||
|                      | ||||
|                     Text(" 명") | ||||
|                         .font(.custom(Font.medium.rawValue, size: 13.3)) | ||||
|                         .foregroundColor(Color(hex: "eeeeee")) | ||||
|                         .foregroundColor(Color.grayee) | ||||
|                      | ||||
|                     Spacer() | ||||
|                 } | ||||
|                 .padding(.horizontal, 13.3) | ||||
|                 .padding(.top, 6.7) | ||||
|                  | ||||
|                 ScrollView(.vertical, showsIndicators: false) { | ||||
|                     VStack(spacing: 13.3) { | ||||
|                         ForEach(0..<viewModel.creatorList.count, id: \.self) { index in | ||||
|                             let creator = viewModel.creatorList[index] | ||||
|                              | ||||
|                             FollowCreatorItemView( | ||||
|                                 creator: creator, | ||||
|                                 onClickFollow: { viewModel.creatorFollow(userId: $0) }, | ||||
|                                 onClickUnFollow: { viewModel.creatorUnFollow(userId: $0) } | ||||
|                             ) | ||||
|                 if viewModel.totalCount > 0 { | ||||
|                     ScrollView(.vertical, showsIndicators: false) { | ||||
|                         VStack(spacing: 13.3) { | ||||
|                             ForEach(0..<viewModel.creatorList.count, id: \.self) { index in | ||||
|                                 let creator = viewModel.creatorList[index] | ||||
|                                  | ||||
|                                 FollowCreatorItemView( | ||||
|                                     creator: creator, | ||||
|                                     onClickFollow: { viewModel.creatorFollow(userId: $0) }, | ||||
|                                     onClickUnFollow: { viewModel.creatorUnFollow(userId: $0) } | ||||
|                                 ) | ||||
|                                 .padding(.horizontal, 20) | ||||
|                                 .onTapGesture { | ||||
|                                     AppState.shared | ||||
| @@ -54,9 +55,15 @@ struct FollowCreatorView: View { | ||||
|                                         viewModel.getFollowedCreatorAllList() | ||||
|                                     } | ||||
|                                 } | ||||
|                             } | ||||
|                         } | ||||
|                         .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 { | ||||
| @@ -69,7 +76,7 @@ struct FollowCreatorView: View { | ||||
|                         .padding(.vertical, 13.3) | ||||
|                         .frame(width: screenSize().width - 66.7, alignment: .center) | ||||
|                         .font(.custom(Font.medium.rawValue, size: 12)) | ||||
|                         .background(Color(hex: "3bb9f1")) | ||||
|                         .background(Color.button) | ||||
|                         .foregroundColor(Color.white) | ||||
|                         .multilineTextAlignment(.leading) | ||||
|                         .cornerRadius(20) | ||||
|   | ||||
| @@ -72,8 +72,8 @@ struct MyPageView: View { | ||||
|                                         Text("내 채널 보기") | ||||
|                                             .frame(width: screenSize().width - 26.7, height: 46.7) | ||||
|                                             .font(.custom(Font.bold.rawValue, size: 15.3)) | ||||
|                                             .foregroundColor(Color(hex: "eeeeee")) | ||||
|                                             .background(Color(hex: "3bb9f1")) | ||||
|                                             .foregroundColor(Color.grayee) | ||||
|                                             .background(Color.button) | ||||
|                                             .cornerRadius(6.7) | ||||
|                                             .padding(.top, 26.7) | ||||
|                                             .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 { | ||||
|                                         CanCardView(data: data) { | ||||
|                                             viewModel.getMypage() | ||||
| @@ -149,7 +164,7 @@ struct MyPageView: View { | ||||
|                         .padding(.vertical, 13.3) | ||||
|                         .frame(width: geo.size.width - 66.7, alignment: .center) | ||||
|                         .font(.custom(Font.medium.rawValue, size: 12)) | ||||
|                         .background(Color(hex: "9970ff")) | ||||
|                         .background(Color.button) | ||||
|                         .foregroundColor(Color.white) | ||||
|                         .multilineTextAlignment(.center) | ||||
|                         .cornerRadius(20) | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Yu Sung
					Yu Sung