-
Notifications
You must be signed in to change notification settings - Fork 2
[FEAT/#1] 참가자 화면 컬렉션 뷰를 구현합니다. #42
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
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>
0Hooni
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
코드가 읽기 너무 좋게 잘 짜신것 같아요!!
덕분에 리뷰하기 수월했습니다 ㅎㅎ
수고 많으셨습니다! 👍
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
자간 설정하는건 처음보는데 이렇게 하는군요!
저희도 라벨 쓰는곳이 있었는데 디벨롭에 들어오면 적용해봐야겠네요
...esentationLayer/PhotoRoomFeature/PhotoRoomFeature/Source/Model/ParticipantsSectionItem.swift
Outdated
Show resolved
Hide resolved
...tionLayer/PhotoRoomFeature/PhotoRoomFeature/Source/View/ParticipantsCollectionViewCell.swift
Show resolved
Hide resolved
...oomFeature/PhotoRoomFeature/Source/ViewController/ParticipantsCollectionViewController.swift
Show resolved
Hide resolved
...tionLayer/PhotoRoomFeature/PhotoRoomFeature/Source/View/ParticipantsCollectionViewCell.swift
Show resolved
Hide resolved
...oomFeature/PhotoRoomFeature/Source/ViewController/ParticipantsCollectionViewController.swift
Show resolved
Hide resolved
...tionLayer/PhotoRoomFeature/PhotoRoomFeature/Source/View/ParticipantsCollectionViewCell.swift
Outdated
Show resolved
Hide resolved
hsw1920
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
고생하셨습니다!
🤔 배경
참가자 대기 화면 (WaitingRoomFeature) 과 사진 촬영 화면 (PhotoRoomFeature) 에서 공통으로 사용되는 참여자 화면을 구현해야 했습니다.
📃 작업 내역
추가된 타입과 메소드는 아래와 같습니다.
ParticipantsCollectionViewController: 2x2 형태의 참가자 화면을 컬렉션뷰로 구현합니다.ParticipantsCollectionViewCell: 참가자 컬렉션 뷰에서 사용되는 셀로 참가자 한명의 화면을 나타냅니다.ParticipantsSectionItem: DiffableDataSource에 사용되는 모델입니다.ParticipantsCollectionViewDataSource: DiffableDataSource로 추후 참가자 화면 순서를 변경할 때 애니메이션을 적용하기 위해 사용합니다.setKern(): UILabel Extension 메소드로 자간을 설정해주는 메소드입니다.✅ 리뷰 노트
상대방의 화면은 ConnectionClient 에 UIView 프로퍼티로 가지고 있습니다.
컬렉션뷰 셀에 들어갈 UIView 정보를 SectionItem 구조체에서 들고 있고, 셀에 UIView를 주입해주면 셀이 재사용될 때 메모리 누수와 같은 문제가 발생할 수 있어
videoID: Int정보만 들고 있도록 했습니다.