Skip to content

Feature/home view extraheight fix#49

Merged
giseungNoh merged 3 commits intodevfrom
feature/HomeView-extraheight-fix
Jun 13, 2025
Merged

Feature/home view extraheight fix#49
giseungNoh merged 3 commits intodevfrom
feature/HomeView-extraheight-fix

Conversation

@giseungNoh
Copy link
Copy Markdown
Collaborator

@giseungNoh giseungNoh commented Jun 13, 2025

수정사항
1.유저이미지 높이에 따라 셀 높이도 달라지도록 수정
2.탭바 겹치기는 문제 수정

할 일

  • 뷰모델 만들고 코어 데이터에 있는 비디오 정보들 가져오기
  • 밑으로 내리면 영상 더 나올 수 있게 페이지네이션 구현
  • 위로 땡기면 새로고침 되도록 구현
  • 서치바 태그로 검색 될 수 있도록 구현

@korbit-ai
Copy link
Copy Markdown

korbit-ai Bot commented Jun 13, 2025

You've used up your 5 PR reviews for this month under the Korbit Starter Plan. You'll get 5 more reviews on June 22nd, 2025 or you can upgrade to Pro for unlimited PR reviews and enhanced features in your Korbit Console.

Copy link
Copy Markdown
Collaborator

@kdn0325 kdn0325 left a comment

Choose a reason for hiding this comment

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

LGTM

Comment on lines +114 to +117
let userImageHeight = itemWidth / 5 // 유저 이미지높이는 전체 셀 너비의 20퍼센트로 설정
let totalHeight = thumbnailHeight + userImageHeight + spacingBetweenViews

return CGSize(width: itemWidth, height: thumbnailHeight + extraHeight)
return CGSize(width: itemWidth, height: totalHeight)
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

혹시 totalHeigh 이걸 계산 안하고 height에 let height = collectionView.bounds.height 이 height를 주는 방법은 실패하셨나요? 지금도 유동적으로 잘 보이긴하는데, 높이는 자동으로 계산되도록하고 height를 주는게 일반적인 것 같아서용

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

UICollectionViewFlowLayout.automaticSize 이걸 쓰면 자동계산이 되지만 아이패드 가로 세로 모드일때 뷰가 깨 질 수 있다고하네요

@giseungNoh giseungNoh merged commit a93bba6 into dev Jun 13, 2025
@giseungNoh giseungNoh deleted the feature/HomeView-extraheight-fix branch June 13, 2025 06:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants