마이 페이지
- 팔로잉 리스트 버튼 추가
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)
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user