Skip to content

Conversation

@youn9k
Copy link
Member

@youn9k youn9k commented Nov 14, 2024

🤔 배경

참가자 대기 화면 (WaitingRoomFeature) 과 사진 촬영 화면 (PhotoRoomFeature) 에서 공통으로 사용되는 참여자 화면을 구현해야 했습니다.

📃 작업 내역

추가된 타입과 메소드는 아래와 같습니다.

  • ParticipantsCollectionViewController : 2x2 형태의 참가자 화면을 컬렉션뷰로 구현합니다.
  • ParticipantsCollectionViewCell: 참가자 컬렉션 뷰에서 사용되는 셀로 참가자 한명의 화면을 나타냅니다.
  • ParticipantsSectionItem: DiffableDataSource에 사용되는 모델입니다.
  • ParticipantsCollectionViewDataSource: DiffableDataSource로 추후 참가자 화면 순서를 변경할 때 애니메이션을 적용하기 위해 사용합니다.
  • setKern(): UILabel Extension 메소드로 자간을 설정해주는 메소드입니다.

✅ 리뷰 노트

상대방의 화면은 ConnectionClient 에 UIView 프로퍼티로 가지고 있습니다.
컬렉션뷰 셀에 들어갈 UIView 정보를 SectionItem 구조체에서 들고 있고, 셀에 UIView를 주입해주면 셀이 재사용될 때 메모리 누수와 같은 문제가 발생할 수 있어 videoID: Int 정보만 들고 있도록 했습니다.

Kiyoung-Kim-57 and others added 9 commits November 14, 2024 15:05
Co-Authored-By: Kiyoung <121777185+Kiyoung-Kim-57@users.noreply.github.com>
Co-Authored-By: Kiyoung <121777185+Kiyoung-Kim-57@users.noreply.github.com>
Co-Authored-By: Kiyoung <121777185+Kiyoung-Kim-57@users.noreply.github.com>
Co-Authored-By: Kiyoung <121777185+Kiyoung-Kim-57@users.noreply.github.com>
Co-Authored-By: Kiyoung <121777185+Kiyoung-Kim-57@users.noreply.github.com>
Co-Authored-By: Kiyoung <121777185+Kiyoung-Kim-57@users.noreply.github.com>
@youn9k youn9k added the ✨ feat 새로운 기능 추가 label Nov 14, 2024
@youn9k youn9k requested review from 0Hooni and hsw1920 November 14, 2024 11:22
@youn9k youn9k linked an issue Nov 14, 2024 that may be closed by this pull request
2 tasks
Copy link
Collaborator

@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.

코드가 읽기 너무 좋게 잘 짜신것 같아요!!

덕분에 리뷰하기 수월했습니다 ㅎㅎ

수고 많으셨습니다! 👍

Copy link
Collaborator

Choose a reason for hiding this comment

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

자간 설정하는건 처음보는데 이렇게 하는군요!

저희도 라벨 쓰는곳이 있었는데 디벨롭에 들어오면 적용해봐야겠네요 ☺️

Copy link
Collaborator

@hsw1920 hsw1920 left a comment

Choose a reason for hiding this comment

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

고생하셨습니다!

DesignSystem 의존성 연결
빈폴더 방지
UICollectionViewCell identifier 익스텐션 추가
@youn9k youn9k merged commit 8473042 into develop Nov 16, 2024
1 check passed
@youn9k youn9k deleted the feat/#1-participants-view branch November 16, 2024 14:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

✨ feat 새로운 기능 추가

Projects

None yet

Development

Successfully merging this pull request may close these issues.

참여 인원에 따라 레이아웃이 바뀐다 참가자의 화면을 띄운다 참여자 화면 UI 구현

5 participants