Conversation
📝 WalkthroughWalkthroughTreatmentFilterView에 빈 상태 UI를 추가했습니다. treatments 목록이 비어있을 때 이미지와 안내 텍스트를 표시하고, 화면 로드 시 초기 데이터 조회를 트리거하는 .task 수정자를 추가했으며, 새로운 asset을 추가했습니다. Changes
Estimated code review effort🎯 2 (Simple) | ⏱️ ~12 minutes Possibly related PRs
Suggested reviewers
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing touches
🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
There was a problem hiding this comment.
Actionable comments posted: 0
Caution
Some comments are outside the diff and can’t be posted inline due to platform limitations.
⚠️ Outside diff range comments (1)
Cherrish-iOS/Cherrish-iOS/Presentation/Feature/Calendar/Treatment/View/Treatment/TreatmentFilterView.swift (1)
62-65:.task안에서 중첩Task생성은 피하세요중첩
Task는 뷰 소멸 시 취소가 전파되지 않아 불필요한 fetch가 남을 수 있고, 에러도 버려집니다..task본문에서 직접await하고 에러를 처리하는 방식으로 바꾸는 게 안전합니다.✅ 수정 제안
- .task { - Task { - try await viewModel.fetchTreatments() - } - } + .task { + do { + try await viewModel.fetchTreatments() + } catch { + // TODO: 에러 처리(토스트/알럿/로그 등) + } + }
🔗 연결된 이슈
📄 작업 내용