Files
sodalive-ios/docs/20260317_프로필후원랭킹왕관UI동일화.md

2.3 KiB

프로필 후원랭킹 왕관 UI 동일화

  • UserProfileDonationView의 순위 왕관 표시를 HomeCreatorRankingItemView와 동일한 스타일로 변경한다.
    • QA: 상위 1~3위 항목에서 img_rank_1~3 왕관 이미지가 프로필 중앙 오버레이로 표시되는지 코드 기준 확인.
  • UserProfileDonationView에서 왕관 이미지 크기를 조정해 왕관 내부 빈 공간이 보이지 않도록 수정한다.
    • QA: 프로필 이미지(70x70) 대비 왕관 프레임이 과도하지 않도록 코드 프레임 값 확인.
  • 변경 파일 진단 및 빌드 검증을 수행한다.
    • QA: lsp_diagnostics 실행, xcodebuild -workspace "SodaLive.xcworkspace" -scheme "SodaLive" -configuration Debug build 성공.
  • 테스트 액션 동작 여부를 확인한다.
    • QA: xcodebuild -workspace "SodaLive.xcworkspace" -scheme "SodaLive" -destination "platform=iOS Simulator,name=iPhone 16,OS=18.3.1" test 실행 결과로 스킴 테스트 구성 상태 확인.

검증 기록

  • 코드 확인: SodaLive/Sources/Explorer/Profile/UserProfileDonationView.swift에서 왕관 asset을 img_rank_1~3로 변경하고, ZStack(alignment: .center) + frame(width: 108, height: 105)로 Home 랭킹 왕관 UI와 동일한 오버레이 구조로 수정.
  • 코드 확인(추가 조정): SodaLive/Sources/Explorer/Profile/UserProfileDonationView.swift에서 왕관 Image(crowns[index]) 프레임과 컨테이너 ZStack 프레임을 108x105에서 73x73으로 축소해 프로필(70x70) 대비 과도한 내부 여백을 제거.
  • 수동 확인(코드 기반): 프레임 값 검색 결과 .frame(width: 70, height: 70) + .frame(width: 73, height: 73) 조합 반영 확인.
  • 진단 확인: lsp_diagnostics 실행 결과 No such module 'Kingfisher'가 표시됨. 동일 import를 가진 SodaLive/Sources/Home/HomeCreatorRankingItemView.swift에서도 동일 진단 재현되어 로컬 SourceKit 환경 이슈로 기록.
  • 빌드 검증: xcodebuild -workspace "SodaLive.xcworkspace" -scheme "SodaLive" -configuration Debug build 실행 결과 ** BUILD SUCCEEDED ** 확인.
  • 테스트 검증: xcodebuild -workspace "SodaLive.xcworkspace" -scheme "SodaLive" -destination "platform=iOS Simulator,name=iPhone 16,OS=18.3.1" test 실행 시 Scheme SodaLive is not currently configured for the test action. 확인.