-
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] #137 - 홈 습관티켓 프로필 갯수 반영 #147
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.
감사합니다...!! 수고하셨습니다!!!
if memberNum > 3 { | ||
for index in 0..<3 { | ||
profileImageList[index]?.updateImage(profileImg[index] ?? "") | ||
profileImageList[index]?.isHidden = false | ||
} | ||
|
||
fourthProfileImage.isHidden = false | ||
restLabel.isHidden = false | ||
restLabel.text = "+\(profileImg.count - 3)" | ||
restLabel.text = "+\(memberNum - 3)" | ||
} else { | ||
if profileImg.count == 0 { | ||
profileImageList.forEach { $0?.isHidden = true } | ||
} else if profileImg.count == 3 { | ||
if memberNum == 3 { | ||
for index in 0..<3 { | ||
profileImageList[index]?.updateImage(profileImg[index] ?? "") | ||
profileImageList[index]?.isHidden = false | ||
} | ||
} else { | ||
for index in 0..<profileImg.count { | ||
for index in 0..<memberNum { | ||
profileImageList[index]?.updateImage(profileImg[index] ?? "") | ||
profileImageList[index]?.isHidden = false | ||
|
||
fourthProfileImage.isHidden = true | ||
restLabel.isHidden = true | ||
} | ||
for index in profileImg.count...2 { | ||
for index in memberNum...2 { | ||
profileImageList[index]?.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.
지독한 분기처리... 고생하셨습니다!
func signup(socailID: String, profileImg: UIImage, nickname: String, fcmToken: String, completion: @escaping (NetworkResult<Any>) -> Void) { | ||
userProvider.request(.signup(socialID: socailID, profileImg: profileImg, nickname: nickname, fcmToken: fcmToken)) { result in | ||
func signup(socialID: String, profileImg: UIImage, nickname: String, fcmToken: String, completion: @escaping (NetworkResult<Any>) -> Void) { | ||
userProvider.request(.signup(socialID: socialID, profileImg: profileImg, nickname: nickname, fcmToken: fcmToken)) { result in |
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.
헐...
🌴 PR 요약
🌱 작업한 브랜치
🌱 작업한 내용
📌 참고 사항
📮 관련 이슈