-
Notifications
You must be signed in to change notification settings - Fork 6
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
Conversation
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.
섬배덕분에 쇽샥으로 서버 스무스하게 끝냈어....
if let waitingRoom = data as? Waiting { | ||
var user: ReqUser | ||
|
||
self.navigationController?.initWithTitle(title: "\(waitingRoom.roomName)", tintColor: .sparkBlack, backgroundColor: .sparkWhite) |
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.
넹 근데 요 친구는 사실 제대로 작동하는지 확인해보지 않아서 나중에 네비바 연결할 때 한 번에 정리해봐야될 것 같아요!
if waitingRoom.fromStart { | ||
[self.stopwatchLabel, self.checkDivideView].forEach { $0.isHidden = false } | ||
} else { | ||
[self.stopwatchLabel, self.checkDivideView].forEach { $0.isHidden = true } | ||
} |
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.
shok shak
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 | ||
} |
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.
덕분에 try와 do catch를 이용한 오류 처리 공부하고 갑니다...! 프로필이미지가 있는지, url이 제대로 전달되었는지에 따라 분기처리해주셨군요!
🌴 PR 요약
🌱 작업한 브랜치
🌱 작업한 내용
📌 참고 사항
프로필 이미지 부분은 서버에서 디폴트 이미지를 보내주신다고 했는데, nil 값으로 들어와서 일단은 nil 값이 들어온다는 가정 하에 로직 짰습니다.
디폴트 이미지까지 url로 야무지게 들어오면 initCell을 제대로 수정해보겠습니다.
추가 말할 것이 있었는데 깜빡했슴니다....
이전에 스톱워치 + 사진 중 사진 인증 플로우 커밋까지 포함되어 있어서 쫌 많은데!
이전꺼 머지하고 봐주시면 감사하겠습니다!
📸 스크린샷
📮 관련 이슈