Skip to content

Conversation

@snughnu
Copy link
Collaborator

@snughnu snughnu commented Feb 3, 2026

연관된 이슈

작업 내용 및 고민 내용

1. 가격 표시 한 줄 고정

  • 방법
    • 각 CurrencyLabel에 .fixedSize()를 적용하여 본래 크기 유지
    • HStack 전체를 .fixedSize() + .drawingGroup()으로 묶어 하나의 렌더링 단위로 처리
    • .minimumScaleFactor(0.7) + .lineLimit(1)로 전체가 함께 축소되도록 구현
    • ItemRow의 가격 버튼 width를 89pt에서 95pt로 증가

2. 두 손가락 터치 시 UI 멈춤 문제 해결

  • 문제 상황
    • 두 손가락으로 버튼을 터치하면 버튼이 눌린 상태의 UI로 멈춰버리는 버그 발생
    • 기존 @State를 사용한 구현에서는 onEnded가 호출되지 않아 isPressed = true 상태로 고정
  • 해결 방법
    • @State@GestureState로 변경
    • .onChanged + .onEnded 방식 → .updating 방식으로 변경
    • @GestureState는 제스처가 취소/종료/실패 시 자동으로 초기값(false)으로 리셋되므로, 두 손가락 터치로 제스처가 취소되어도 자동으로 press 상태가 해제됨을 이용

스크린샷

image

리뷰 요구사항

  • 각 문제의 해결방법이 적절한지 검토 부탁드립니다!

- width 증가
- PriceButton에서도 설정 추가
- GestureState 사용 시, 취소 종료 실패했을 때 자동으로 false
- 즉 두 손가락 터치로 제스처가 취소되면 false로 자동 복구
@snughnu snughnu self-assigned this Feb 3, 2026
@snughnu snughnu marked this pull request as draft February 3, 2026 04:16
@snughnu snughnu marked this pull request as ready for review February 3, 2026 09:46
@snughnu snughnu requested review from dongglehada, sunjae0902 and tomchoi95 and removed request for dongglehada February 3, 2026 09:46
@snughnu snughnu added Fix 버그 수정 작업 UI 화면에 보이는 요소들을 개발합니다. labels Feb 3, 2026
Copy link
Collaborator

@sunjae0902 sunjae0902 left a comment

Choose a reason for hiding this comment

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

고생하셨습니다~!

@snughnu snughnu merged commit 65397a5 into dev Feb 3, 2026
1 check passed
@snughnu snughnu deleted the fix/#153-priceButton-bug branch February 3, 2026 09:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Fix 버그 수정 작업 UI 화면에 보이는 요소들을 개발합니다.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

가격 누름 단추 관련 버그를 수정합니다.

4 participants