Skip to content

Conversation

@zzangzzangguy
Copy link
Contributor

📌 이슈

✅ 작업 사항

  • UIButton/PPButton의 기본 intrinsicContentSize로는 볼드 폰트의 ascender+descender 높이를 충분히 담지 못하는 문제 확인
  • NSMutableAttributedString.baselineOffset 속성(-1)을 추가하여 약간의 트릭(?) 텍스트를 살짝 아래로 이동시켜 잘림 방지
  • 버튼 생성 및 상태별 UI 설정을 Then 체이닝(.then {…}, .do {…})으로 가독성 개선
  • 각종 매직 넘버(inset, fontSize, baselineOffset, checkIconSize 등)를 enum Constant로 추출

🚀 테스트 방식

Filter Sheet 열어 “지역 태그” 버튼 영역 확인
2. 기본(비선택) 상태와 탭(선택) 상태 모두에서

  • 볼드 폰트(선택 상태) 적용 시 위쪽이 잘리지 않는지
  • 체크 아이콘이 정상 크기로 나오는지
  1. Accessibility → Bold Text 켜고 동일 확인
  2. Simulator와 실제 기기(iOS 16, 17) 양쪽에서 검증
스크린샷 2025-05-05 오후 6 37 08

👀 ETC (추후 개발해야 할 것, 참고자료 등) ->

@zzangzzangguy zzangzzangguy changed the title Fix/#130 fix truncated subregion labels Fix/#130 서브지역 카테고리 라벨 상단이 짤리던 이슈 수정 May 5, 2025
@zzangzzangguy zzangzzangguy changed the title Fix/#130 서브지역 카테고리 라벨 상단이 짤리던 이슈 수정 [FIX] 서브지역 카테고리 라벨 상단이 짤리던 이슈 수정 May 5, 2025
@zzangzzangguy zzangzzangguy added the 🐛 fix 버그 수정, 잔잔바리 수정, 병합 시 충돌 해결 label May 5, 2025
Copy link
Member

@dongglehada dongglehada left a comment

Choose a reason for hiding this comment

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

팀 룰에 맞게 constant사용 및 then을 사용하여 수정하신 점이 좋습니다!! 다만 일부 코드가 팀룰에 맞지 않거나 이미 있는 요소가 다시 생성된 것 같아서 해당 내용 확인 부탁드릴게요 !!

import Infrastructure
import SnapKit
import Then
import UIKit
Copy link
Member

Choose a reason for hiding this comment

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

import 순서 및 띄워쓰기를 팀 룰에 맞게 수정하면 좋을 것 같습니다 :>

currentAction = action
}
}
static let identifier = "BalloonChipCell"
Copy link
Member

@dongglehada dongglehada May 5, 2025

Choose a reason for hiding this comment

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

UICollectionViewCell에 identifiers가 이미 존재하는 것으로 알고 있어서 해당 프로퍼티 사용하면 좋을 것 같습니다!!
디자인시스템 내 UICollectionViewCell+

extension UICollectionViewCell {
    static var identifiers: String {
        return String(describing: self)
    }
}

Copy link
Contributor Author

Choose a reason for hiding this comment

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

확인후 적용되었습니다.

}
static let identifier = "BalloonChipCell"

private enum Constant {
Copy link
Member

Choose a reason for hiding this comment

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

사용할 값들을 Constant로 빼서 사용하는 룰!! 적용된 걸 보니 깔끔해서 좋습니다 :>

zzangzzangguy and others added 7 commits May 7, 2025 13:22
…hub.com/PopPool/iOS into fix/#130-fix-truncated-subregion-labels

# Conflicts:
#	Poppool/PresentationLayer/Presentation/Presentation/Scene/Map/FillterSheetView/BalloonChipCell.swift
…hub.com/PopPool/iOS into fix/#130-fix-truncated-subregion-labels

# Conflicts:
#	Poppool/PresentationLayer/Presentation/Presentation/Scene/Map/FillterSheetView/BalloonChipCell.swift
@zzangzzangguy zzangzzangguy requested a review from dongglehada May 7, 2025 09:10
@zzangzzangguy zzangzzangguy self-assigned this May 7, 2025
Copy link
Member

@dongglehada dongglehada left a comment

Choose a reason for hiding this comment

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

LGTM

Copy link
Member

@0Hooni 0Hooni left a comment

Choose a reason for hiding this comment

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

LGTM👍🏻

수고하셨습니다!!

@zzangzzangguy zzangzzangguy merged commit bb3d306 into develop May 12, 2025
@0Hooni 0Hooni deleted the fix/#130-fix-truncated-subregion-labels branch October 19, 2025 11:17
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.

4 participants