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

[Feat] #80 - 대기방 서버 연결 #87

Merged
merged 14 commits into from
Jan 17, 2022

Conversation

yangsubinn
Copy link
Member

@yangsubinn yangsubinn commented Jan 17, 2022

🌴 PR 요약

🌱 작업한 브랜치

🌱 작업한 내용

  • 대기방 조회 서버 연결
  • 대기방 인원 조회 서버 연결

📌 참고 사항

  • 프로필 이미지 부분은 서버에서 디폴트 이미지를 보내주신다고 했는데, nil 값으로 들어와서 일단은 nil 값이 들어온다는 가정 하에 로직 짰습니다.
    디폴트 이미지까지 url로 야무지게 들어오면 initCell을 제대로 수정해보겠습니다.

  • 추가 말할 것이 있었는데 깜빡했슴니다....

이전에 스톱워치 + 사진 중 사진 인증 플로우 커밋까지 포함되어 있어서 쫌 많은데!
이전꺼 머지하고 봐주시면 감사하겠습니다!

📸 스크린샷

기능 스크린샷
대기방 설벌

📮 관련 이슈

@yangsubinn yangsubinn added Feat 새로운 기능 구현 🦹t없e맑은水빈 우리 선배 이젠 타이니하지 않아 🚨review_required🚨 긴급! 빠르게 확인해야할 사항 labels Jan 17, 2022
@yangsubinn yangsubinn self-assigned this Jan 17, 2022
@yangsubinn yangsubinn removed the 🚨review_required🚨 긴급! 빠르게 확인해야할 사항 label Jan 17, 2022
Copy link
Member

@hyun99999 hyun99999 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
Member

@L-j-h-c L-j-h-c left a comment

Choose a reason for hiding this comment

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

섬배덕분에 쇽샥으로 서버 스무스하게 끝냈어....

if let waitingRoom = data as? Waiting {
var user: ReqUser

self.navigationController?.initWithTitle(title: "\(waitingRoom.roomName)", tintColor: .sparkBlack, backgroundColor: .sparkWhite)
Copy link
Member

Choose a reason for hiding this comment

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

오아 내비로 룸네임 적용해주는군요...!

Copy link
Member Author

Choose a reason for hiding this comment

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

넹 근데 요 친구는 사실 제대로 작동하는지 확인해보지 않아서 나중에 네비바 연결할 때 한 번에 정리해봐야될 것 같아요!

Comment on lines +199 to +203
if waitingRoom.fromStart {
[self.stopwatchLabel, self.checkDivideView].forEach { $0.isHidden = false }
} else {
[self.stopwatchLabel, self.checkDivideView].forEach { $0.isHidden = true }
}
Copy link
Member

Choose a reason for hiding this comment

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

쇽 샥!

Copy link
Member Author

Choose a reason for hiding this comment

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

shok shak

Comment on lines +224 to +237
if user.profileImg != nil {
if let url = URL(string: user.profileImg ?? "") {
do {
let data = try Data(contentsOf: url)
self.profileImageView.image = UIImage(data: data)
} catch {
self.profileImageView.image = UIImage(named: "profileEmpty")
self.profileImageView.backgroundColor = .sparkGray
}
}
} else {
self.profileImageView.image = UIImage(named: "profileEmpty")
self.profileImageView.backgroundColor = .sparkGray
}
Copy link
Member

Choose a reason for hiding this comment

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

덕분에 try와 do catch를 이용한 오류 처리 공부하고 갑니다...! 프로필이미지가 있는지, url이 제대로 전달되었는지에 따라 분기처리해주셨군요!

@yangsubinn yangsubinn merged commit dee05d7 into TeamSparker:develop Jan 17, 2022
@yangsubinn yangsubinn deleted the feature/#80 branch January 27, 2022 06:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Feat 새로운 기능 구현 🦹t없e맑은水빈 우리 선배 이젠 타이니하지 않아
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Feat] 대기방 서버 연결
3 participants