diff --git a/SodaLive/Sources/Explorer/Profile/CreatorCommunity/CreatorCommunityItemView.swift b/SodaLive/Sources/Explorer/Profile/CreatorCommunity/CreatorCommunityItemView.swift index f0de553..4ce9532 100644 --- a/SodaLive/Sources/Explorer/Profile/CreatorCommunity/CreatorCommunityItemView.swift +++ b/SodaLive/Sources/Explorer/Profile/CreatorCommunity/CreatorCommunityItemView.swift @@ -45,6 +45,10 @@ struct CreatorCommunityItemView: View { .resizable() .frame(width: 53.3, height: 53.3) .cornerRadius(4.7) + } else { + Rectangle() + .foregroundColor(Color(hex: "222222").opacity(0)) + .frame(width: 53.3, height: 53.3) } } diff --git a/SodaLive/Sources/Explorer/Profile/CreatorCommunity/Write/CreatorCommunityWriteViewModel.swift b/SodaLive/Sources/Explorer/Profile/CreatorCommunity/Write/CreatorCommunityWriteViewModel.swift index 9f74c42..9dc8347 100644 --- a/SodaLive/Sources/Explorer/Profile/CreatorCommunity/Write/CreatorCommunityWriteViewModel.swift +++ b/SodaLive/Sources/Explorer/Profile/CreatorCommunity/Write/CreatorCommunityWriteViewModel.swift @@ -45,11 +45,6 @@ final class CreatorCommunityWriteViewModel: ObservableObject { fileName: "\(UUID().uuidString)_\(Date().timeIntervalSince1970 * 1000).jpg", mimeType: "image/*") ) - } else { - errorMessage = "이미지를 업로드 하지 못했습니다.\n다시 선택해 주세요" - isShowPopup = true - isLoading = false - return } multipartData.append(MultipartFormData(provider: .data(jsonData), name: "request")) @@ -103,6 +98,12 @@ final class CreatorCommunityWriteViewModel: ObservableObject { } private func validateData() -> Bool { + if content.trimmingCharacters(in: .whitespacesAndNewlines).isEmpty || content.count < 5 { + errorMessage = "내용을 5자 이상 입력해 주세요." + isShowPopup = true + return false + } + return true } }