Skip to content
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

LiarGame Subject Select View & LiarGame View early Setup #12

Merged
merged 4 commits into from
Apr 26, 2022

Conversation

2jae6
Copy link
Owner

@2jae6 2jae6 commented Apr 25, 2022

배경

라이어 게임 주제 선택 이후 라이어 게임까지 갈 수 있는 화면을 초기 구성이 필요하였습니다.

목적

LiarGame Subject Select View & LiarGame View early Setup

리뷰 시 참고사항

  • 아직 초기 뷰 그리는 단계라서 코드가 아키텍쳐나 문법이나 위치에 맞는지 확인해주시면 감사드리겠습니다.

@2jae6
Copy link
Owner Author

2jae6 commented Apr 26, 2022

리뷰해주신 부분 참고해서 수정 완료했습니다. 확인 후 merge 부탁드려요!

@elppaaa elppaaa mentioned this pull request Apr 26, 2022

func setupView(){
animalButton.do{
self.view.addSubview($0)
Copy link
Collaborator

Choose a reason for hiding this comment

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

view.addSubview 가 아직 존재합니다 (˃̣̣̣̣︿˂̣̣̣̣ )
view hierarchy 를 보면 flexLayoutContainer 에서 addItem 이 호출될때
추가된걸 확인할 수 있습니다 :]
신기하게 충돌은 안나네요 🦀

image

Copy link
Owner Author

Choose a reason for hiding this comment

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

네 확인했습니다.
self.view.addSubview($0)
스크린샷 2022-04-26 오후 6 33 42

self.view.addSubview($0)
self.view.addSubview($0)
같은 요소 여러개 추가하는걸로 제가 테스트 해봤는데 동일 인스턴스는 아무리 추가해도 하나밖에 안되도록 애플에서 그렇게 만들었나보네요
수정 완료했습니다!

.distinctUntilChanged()
.withUnretained(self)
.subscribe(onNext:{ `self`, subject in
let liarGameVC = LiarGameViewController(subject: subject ?? .job)
Copy link
Collaborator

Choose a reason for hiding this comment

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

?? .job 은 불필요해 보입니다!

Copy link
Owner Author

Choose a reason for hiding this comment

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

넵 제거 완료했습니다 :)

@elppaaa elppaaa merged commit 7521258 into develop Apr 26, 2022
@elppaaa elppaaa deleted the 2jae6/liar_subject branch April 26, 2022 09:37
@2jae6 2jae6 self-assigned this May 1, 2022
@2jae6 2jae6 added the 🚀 feature 🚀 Extra attention is needed label May 1, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🚀 feature 🚀 Extra attention is needed 🐸 Help 🐸 2jae6 작업
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[라이어게임] 주제 선택화면을 만들려고합니다.
2 participants