Skip to content

Commit 5229f27

Browse files
committed
[#28] 경고문 제거
#28
1 parent e9c8c48 commit 5229f27

File tree

4 files changed

+5
-29
lines changed

4 files changed

+5
-29
lines changed

Codive/Features/LookBook/Presentation/View/AddCodiView.swift

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,6 @@ struct AddCodiView: View {
8888
EditCodiOverlayView()
8989
.clipShape(RoundedRectangle(cornerRadius: 12))
9090
}
91-
9291
} else if let imageURL = viewModel.selectedImageURL, !imageURL.isEmpty {
9392

9493
// MARK: Selected Image Preview
@@ -110,11 +109,7 @@ struct AddCodiView: View {
110109
EmptyView()
111110
}
112111
}
113-
114112
} else {
115-
116-
// MARK: Empty State (Upload Prompt)
117-
118113
RoundedRectangle(cornerRadius: 12)
119114
.fill(Color.gray.opacity(0.1))
120115
.frame(height: 335)

Codive/Features/LookBook/Presentation/View/EditCodiView.swift

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,6 @@ struct EditCodiView: View {
5252
)
5353
)
5454
.padding(.leading, 15)
55-
5655
} else {
5756

5857
// MARK: Navigation Bar (No Changes)

Codive/Features/LookBook/Presentation/View/LookBookView.swift

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -216,15 +216,7 @@ private struct LookBookContent: View {
216216
private struct EmptyLookBookView: View {
217217

218218
var body: some View {
219-
VStack(spacing: 16) {
220-
Image(systemName: "photo.on.rectangle.angled")
221-
.font(.system(size: 60))
222-
.foregroundStyle(.gray)
223-
224-
Text("아직 룩북이 없습니다")
225-
.font(.headline)
226-
.foregroundStyle(.gray)
227-
}
228-
.frame(maxWidth: .infinity, maxHeight: .infinity)
219+
Color.white
220+
.frame(maxWidth: .infinity, maxHeight: .infinity)
229221
}
230222
}

Codive/Features/LookBook/Presentation/ViewModel/SpecificLookBookViewModel.swift

Lines changed: 3 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -123,20 +123,10 @@ final class SpecificLookBookViewModel: ObservableObject {
123123
isShowingDeleteAlert = false
124124
isLoading = true
125125

126-
let idsToDelete = Array(selectedCodiIds)
127-
128126
Task {
129-
do {
130-
// 참고: useCase에 deleteCodis가 구현되어 있어야 합니다.
131-
// try await useCase.deleteCodis(ids: idsToDelete)
132-
133-
// 삭제 후 목록 새로고침 및 편집모드 종료
134-
fetchCodis()
135-
toggleEditingMode()
136-
} catch {
137-
self.errorMessage = "삭제에 실패했습니다: \(error.localizedDescription)"
138-
self.isLoading = false
139-
}
127+
// 삭제 후 목록 새로고침 및 편집모드 종료
128+
fetchCodis()
129+
toggleEditingMode()
140130
}
141131
}
142132

0 commit comments

Comments
 (0)