diff --git a/SodaLive/Sources/MyPage/Profile/ProfileUpdateView.swift b/SodaLive/Sources/MyPage/Profile/ProfileUpdateView.swift index 5fced00..52066be 100644 --- a/SodaLive/Sources/MyPage/Profile/ProfileUpdateView.swift +++ b/SodaLive/Sources/MyPage/Profile/ProfileUpdateView.swift @@ -323,40 +323,74 @@ struct ProfileUpdateView: View { NicknameAndGenderView() .padding(.top, 13.3) - InstagramAndYoutubeAccountView() - .padding(.top, 13.3) + if UserDefaults.string(forKey: .role) == MemberRole.CREATOR.rawValue { + InstagramAndYoutubeAccountView() + .padding(.top, 13.3) + } - TagSelectView() - .padding(.top, 33.3) + if UserDefaults.string(forKey: .role) == MemberRole.CREATOR.rawValue { + TagSelectView() + .padding(.top, 33.3) + } - ContentInputView() - .padding(.top, 33.3) + if UserDefaults.string(forKey: .role) == MemberRole.CREATOR.rawValue { + ContentInputView() + .padding(.top, 33.3) + } - Text("저장하기") - .font(.custom(Font.bold.rawValue, size: 18.3)) - .foregroundColor(Color.white) - .frame(width: screenSize().width - 26.7, height: 50) - .background(Color(hex: "9970ff")) - .cornerRadius(10) - .padding(.vertical, 13.7) - .padding(.horizontal, 13.3) - .frame(width: screenSize().width) - .background(Color(hex: "222222")) - .cornerRadius(16.7, corners: [.topLeft, .topRight]) - .padding(.top, 26.7) - .onTapGesture { - viewModel.updateProfile() + if UserDefaults.string(forKey: .role) == MemberRole.CREATOR.rawValue { + Text("저장하기") + .font(.custom(Font.bold.rawValue, size: 18.3)) + .foregroundColor(Color.white) + .frame(width: screenSize().width - 26.7, height: 50) + .background(Color(hex: "9970ff")) + .cornerRadius(10) + .padding(.vertical, 13.7) + .padding(.horizontal, 13.3) + .frame(width: screenSize().width) + .background(Color(hex: "222222")) + .cornerRadius(16.7, corners: [.topLeft, .topRight]) + .padding(.top, 26.7) + .onTapGesture { + viewModel.updateProfile() + } + + if proxy.safeAreaInsets.bottom > 0 { + Rectangle() + .foregroundColor(Color(hex: "222222")) + .frame(width: proxy.size.width, height: 15.3) } - - if proxy.safeAreaInsets.bottom > 0 { - Rectangle() - .foregroundColor(Color(hex: "222222")) - .frame(width: proxy.size.width, height: 15.3) } } } } .padding(.top, 13.3) + + if UserDefaults.string(forKey: .role) != MemberRole.CREATOR.rawValue { + Spacer() + + Text("저장하기") + .font(.custom(Font.bold.rawValue, size: 18.3)) + .foregroundColor(Color.white) + .frame(width: screenSize().width - 26.7, height: 50) + .background(Color(hex: "9970ff")) + .cornerRadius(10) + .padding(.vertical, 13.7) + .padding(.horizontal, 13.3) + .frame(width: screenSize().width) + .background(Color(hex: "222222")) + .cornerRadius(16.7, corners: [.topLeft, .topRight]) + .padding(.top, 13.3) + .onTapGesture { + viewModel.updateProfile() + } + + if proxy.safeAreaInsets.bottom > 0 { + Rectangle() + .foregroundColor(Color(hex: "222222")) + .frame(width: proxy.size.width, height: 15.3) + } + } } if isShowPhotoPicker {