Skip to content

Comments

Fix/#64 선택칩 수정#65

Merged
sum130 merged 2 commits intodevelopfrom
64-fix-selectionchip-수정
Jan 15, 2026

Hidden character warning

The head ref may contain hidden characters: "64-fix-selectionchip-\uc218\uc815"
Merged

Fix/#64 선택칩 수정#65
sum130 merged 2 commits intodevelopfrom
64-fix-selectionchip-수정

Conversation

@sum130
Copy link
Contributor

@sum130 sum130 commented Jan 15, 2026

🔗 연결된 이슈

  • Closed: #이슈번호

📄 작업 내용

  • 어쩌구저쩌구
구현 내용 IPhone 16 pro IPhone 13 mini
GIF

✅ Testing

  • 테스트 목적과 상황

  • 시나리오 진행에 필요한 값

  • 시나리오 진행에 필요한 조건

  • 시나리오 완료 시 보장하는 결과

💻 주요 코드 설명

코드 설명할 파일 이름 (ex: HomeView)

  • 어쩌구저쩌구
// 코드는 이 사이에 작성하면 됩니다. 

📚 참고자료

👀 기타 더 이야기해볼 점

@sum130 sum130 requested a review from a team January 15, 2026 16:09
@sum130 sum130 self-assigned this Jan 15, 2026
@sum130 sum130 requested review from soseoyo12, wotjs020708 and y-eonee and removed request for a team January 15, 2026 16:09
@sum130 sum130 linked an issue Jan 15, 2026 that may be closed by this pull request
1 task
@coderabbitai
Copy link

coderabbitai bot commented Jan 15, 2026

📝 Walkthrough

Walkthrough

두 개의 UI 컴포넌트에서 레이아웃과 시각적 스타일이 변경되었습니다. CherrishNavigationBar의 패딩 방향이 수직에서 수평으로 전환되었고, SelectionChip의 배경이 조건부 색상 적용(isSelected 상태에 따라 red200 또는 gray0)이 있는 RoundedRectangle로 업데이트되었습니다.

Changes

컴포넌트 그룹 / 파일(들) 변경 요약
UI 컴포넌트 스타일 수정
CherrishNavigationBar.swift, SelectionChip.swift
네비게이션 바의 패딩 방향을 수직(8.adjustedH)에서 수평(8.adjustedH)으로 변경; 선택 칩의 배경을 단순 색상 적용에서 cornerRadius 10을 가진 RoundedRectangle로 교체하고 isSelected 상태에 따라 red200 또는 gray0의 foregroundStyle 적용

Estimated code review effort

🎯 2 (Simple) | ⏱️ ~5 minutes

Possibly related PRs

Suggested labels

수민🐶

Suggested reviewers

  • y-eonee
  • wotjs020708
  • soseoyo12
🚥 Pre-merge checks | ✅ 1 | ❌ 2
❌ Failed checks (2 inconclusive)
Check name Status Explanation Resolution
Description check ❓ Inconclusive PR 설명이 템플릿 형식의 플레이스홀더로만 작성되어 있으며, 구체적인 구현 내용이 채워지지 않았습니다. 작업 내용, 테스트 방법, 코드 설명 등의 플레이스홀더를 실제 내용으로 채워주세요.
Title check ❓ Inconclusive PR 제목이 변경 사항의 주요 내용과 관련이 있으나, 무엇을 수정했는지 구체적으로 설명하지 않고 모호합니다. 제목을 '선택칩 배경 스타일 및 네비게이션바 패딩 수정' 같이 변경된 내용을 더 명확하게 설명하도록 개선하십시오.
✅ Passed checks (1 passed)
Check name Status Explanation
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing touches
  • 📝 Generate docstrings
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment
  • Commit unit tests in branch 64-fix-selectionchip-수정

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.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

Copy link
Contributor

@wotjs020708 wotjs020708 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

빠르게 어푸푸

Copy link
Contributor

@soseoyo12 soseoyo12 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

긴급 어푸

Copy link

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 2

🤖 Fix all issues with AI agents
In
`@Cherrish-iOS/Cherrish-iOS/Presentation/Global/Components/CherrishNavigationBar.swift`:
- Line 60: In CherrishNavigationBar's view modifier where you call
.padding(.horizontal, 8.adjustedH), replace the height-adjusted helper with the
width-adjusted helper by changing .adjustedH to .adjustedW so the horizontal
padding uses 8.adjustedW to match the project's horizontal sizing convention
used across components like MonthPlan and MissionCard.

In
`@Cherrish-iOS/Cherrish-iOS/Presentation/Global/Components/SelectionChip.swift`:
- Around line 21-24: Replace the use of
RoundedRectangle(...).foregroundStyle(...) with RoundedRectangle(...).fill(...)
so the background shape is colored semantically (use .fill(isSelected ? .red200
: .gray0)); also remove the extra blank space on the line containing the shape
call to match project formatting and keep the background closure compact—look
for the background modifier that constructs RoundedRectangle in SelectionChip
(uses isSelected) and update it accordingly.
📜 Review details

Configuration used: Path: .coderabbit.yaml

Review profile: ASSERTIVE

Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between f112523 and e1cb783.

📒 Files selected for processing (2)
  • Cherrish-iOS/Cherrish-iOS/Presentation/Global/Components/CherrishNavigationBar.swift
  • Cherrish-iOS/Cherrish-iOS/Presentation/Global/Components/SelectionChip.swift
🧰 Additional context used
🧬 Code graph analysis (1)
Cherrish-iOS/Cherrish-iOS/Presentation/Global/Components/SelectionChip.swift (1)
Cherrish-iOS/Cherrish-iOS/Presentation/Global/Extension/View+Color.swift (2)
  • red200 (69-71)
  • gray0 (9-11)
🔇 Additional comments (1)
Cherrish-iOS/Cherrish-iOS/Presentation/Global/Components/SelectionChip.swift (1)

15-31: 선택 칩 UI 구현 적절함

isSelected 상태에 따른 배경색(red200/gray0), 텍스트 색상(gray800/gray700), 테두리 색상(red500/gray500) 변경이 일관성 있게 구현되었습니다. 탭 제스처 동작도 유지되어 있습니다.

✏️ Tip: You can disable this entire section by setting review_details to false in your review settings.

}
.frame(height: 44.adjustedH)
.padding(.vertical, 8.adjustedH)
.padding(.horizontal, 8.adjustedH)
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ Potential issue | 🟡 Minor

🧩 Analysis chain

🏁 Script executed:

rg -n "adjusted" --type swift -C3

Repository: TEAM-Cherrish/Cherrish-iOS

Length of output: 30048


수평 패딩에 .adjustedH 대신 .adjustedW 사용 필요

line 60의 .padding(.horizontal, 8.adjustedH)는 프로젝트 전체에서 사용하는 패턴과 맞지 않습니다. 높이 조정용 .adjustedH 대신 너비 조정용 .adjustedW를 사용해야 합니다. MonthPlan.swift, MissionCard.swift 등 다른 컴포넌트들은 모두 .padding(.horizontal, X.adjustedW)로 일관되게 사용 중입니다.

변경 제안
-.padding(.horizontal, 8.adjustedH)
+.padding(.horizontal, 8.adjustedW)
🤖 Prompt for AI Agents
In
`@Cherrish-iOS/Cherrish-iOS/Presentation/Global/Components/CherrishNavigationBar.swift`
at line 60, In CherrishNavigationBar's view modifier where you call
.padding(.horizontal, 8.adjustedH), replace the height-adjusted helper with the
width-adjusted helper by changing .adjustedH to .adjustedW so the horizontal
padding uses 8.adjustedW to match the project's horizontal sizing convention
used across components like MonthPlan and MissionCard.

Comment on lines +21 to +24
.background{
RoundedRectangle(cornerRadius: 10)
.foregroundStyle( isSelected ? .red200 : .gray0)
}
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🧹 Nitpick | 🔵 Trivial

Shape에 fill() 사용 권장 및 포맷팅 개선

RoundedRectangle에 색상을 적용할 때 foregroundStyle 대신 fill()을 사용하는 것이 의미적으로 더 명확합니다. 또한 라인 23에 불필요한 공백이 있습니다.

♻️ 제안 수정
             .background{
                 RoundedRectangle(cornerRadius: 10)
-                    .foregroundStyle( isSelected ? .red200 : .gray0)
+                    .fill(isSelected ? .red200 : .gray0)
             }
🤖 Prompt for AI Agents
In `@Cherrish-iOS/Cherrish-iOS/Presentation/Global/Components/SelectionChip.swift`
around lines 21 - 24, Replace the use of
RoundedRectangle(...).foregroundStyle(...) with RoundedRectangle(...).fill(...)
so the background shape is colored semantically (use .fill(isSelected ? .red200
: .gray0)); also remove the extra blank space on the line containing the shape
call to match project formatting and keep the background closure compact—look
for the background modifier that constructs RoundedRectangle in SelectionChip
(uses isSelected) and update it accordingly.

@y-eonee y-eonee changed the title fix: #64 선택칩 수정 Fix/#64 선택칩 수정 Jan 15, 2026
@sum130 sum130 merged commit b13a523 into develop Jan 15, 2026
1 check passed
@sum130 sum130 deleted the 64-fix-selectionchip-수정 branch January 15, 2026 16:13
Kimgyuilli pushed a commit that referenced this pull request Jan 21, 2026
@sum130 sum130 added 수민🐶 Fix 버그 수정 labels Jan 23, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Fix 버그 수정 수민🐶

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[fix] selectionChip 수정

4 participants