Fix/#123 textfield 패딩 추가, "세" 자동 추가#124
Conversation
📝 Walkthrough사항 요약온보딩 API의 쿼리 매개변수 타입을 확장하고, 정보 입력 뷰의 나이 필드 처리를 개선하며, 텍스트 필드 패딩 레이아웃을 조정합니다. 변경사항
예상 코드 리뷰 난이도🎯 3 (Moderate) | ⏱️ ~20분 관련 가능성 있는 PR
제안 레이블
제안 검토자
🚥 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: 1
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/Onboarding/InformationView.swift (1)
116-120: 버튼 상태 검증 로직에서ageNumericValue유효성 확인이 누락되었습니다.
isAgeValid가!age.isEmpty && !isAgeOverLimit만 확인합니다. 만약 사용자가 어떤 방식으로든 숫자가 아닌 값을 입력하면 (예: 클립보드 붙여넣기),ageNumericValue가nil인 상태에서 버튼이 활성화될 수 있습니다. 이 경우 Line 86의guard에서 early return되어 버튼 탭이 무시됩니다.🔧 제안된 수정
private func updateButtonState() { let isNameValid = !name.isEmpty && !isNameOverLimit - let isAgeValid = !age.isEmpty && !isAgeOverLimit + let isAgeValid = ageNumericValue != nil && !isAgeOverLimit buttonState = (isNameValid && isAgeValid) ? .active : .normal }
🤖 Fix all issues with AI agents
In
`@Cherrish-iOS/Cherrish-iOS/Presentation/Feature/Onboarding/InformationView.swift`:
- Line 62: Remove the trailing whitespace at the end of the line containing the
view modifier call `.padding(.top, 70.adjustedH)` in InformationView.swift;
locate the `.padding(.top, 70.adjustedH)` expression and delete the extraneous
spaces after the closing parenthesis so the line ends immediately after
`adjustedH`.
| } | ||
| } | ||
| .padding(.top, 70.adjustedH) | ||
| .padding(.top, 70.adjustedH) |
There was a problem hiding this comment.
🧹 Nitpick | 🔵 Trivial
사소한 포맷팅 이슈: 줄 끝에 불필요한 공백이 있습니다.
.padding(.top, 70.adjustedH) 뒤에 trailing whitespace가 있습니다. 코드 스타일 일관성을 위해 제거하는 것이 좋습니다.
🤖 Prompt for AI Agents
In
`@Cherrish-iOS/Cherrish-iOS/Presentation/Feature/Onboarding/InformationView.swift`
at line 62, Remove the trailing whitespace at the end of the line containing the
view modifier call `.padding(.top, 70.adjustedH)` in InformationView.swift;
locate the `.padding(.top, 70.adjustedH)` expression and delete the extraneous
spaces after the closing parenthesis so the line ends immediately after
`adjustedH`.
🔗 연결된 이슈
📄 작업 내용
💻 주요 코드 설명
private var ageNumericValue: Int? { let numericString = age.replacingOccurrences(of: " 세", with: "") return Int(numericString) }