-
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] #155 - 습관방 만들기 화면전환 및 각종 코드 디테일 수정 #158
Conversation
스위프트 린트 경고문 수정
방만들기 케이스 및 버튼 별 화면 전환 기능 구현
스위프트 린트 코드 수정
인증사진 모아보기 마지막 날짜 미표시 및 REST 분기처리
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.
💐🏅
@@ -34,7 +34,7 @@ class FeedCVC: UICollectionViewCell { | |||
let likeCountLabel = UILabel() | |||
let lottieView = AnimationView(name: "icHeartActive") | |||
var likeState: Bool = false | |||
var likeDelegate: FeedCellDelegate? | |||
weak var likeDelegate: FeedCellDelegate? |
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.
oh.....wow..
이미지 익스텐션 및 리사이징 함수 추가
이미지 피커에서 담을 이미지 리사이징
쉴래요 횟수에 따른 버튼 비활성화
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.
이미지가 들어가는 UImageview 의 사이즈를 보고 리사이징을 해주고 있는거 같아요! 상수 말고 변수로 할 수 있다면 좀 더 의미가 있을거 같아요
} else if leftDay == 66 { | ||
dDayLabel.text = "D-\(leftDay)" | ||
certificationImage.image = UIImage() |
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.
66일은 모아보기 서버에서 안넘겨준다고 했지만 혹시 서버에서 잘못줄수도있으니 분기는 처리해둡시당
func resize(newWidth: CGFloat) -> UIImage { | ||
let scale = newWidth / self.size.width | ||
let newHeight = self.size.height * scale | ||
let size = CGSize(width: newWidth, height: newHeight) | ||
let render = UIGraphicsImageRenderer(size: size) | ||
let renderImage = render.image { context in self.draw(in: CGRect(origin: .zero, size: size)) } | ||
return renderImage | ||
} |
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.
호오... newWidth 는 어떤 기준이될까 궁금하네여
@@ -260,7 +260,7 @@ extension AuthUploadVC: UIImagePickerControllerDelegate, UINavigationControllerD | |||
|
|||
func imagePickerController(_ picker: UIImagePickerController, didFinishPickingMediaWithInfo info: [UIImagePickerController.InfoKey: Any]) { | |||
if let image = info[UIImagePickerController.InfoKey.originalImage] as? UIImage { | |||
uploadImageView.image = image | |||
uploadImageView.image = image.resize(newWidth: 250) |
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 myRoomCertificationList?.last?.leftDay == 66 { | ||
return ((myRoomCertificationList?.count ?? 0) - 1) | ||
} else { | ||
return myRoomCertificationList?.count ?? 0 | ||
} |
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.
이것도 66일 넘어올까봐에 대한 분기처리인가용?
// FIXME: - 아래의 목적인데 한번 체크해야할듯 | ||
// 성공적으로 한번의 통신이 마무리된 후 무한스크롤 허용. 즉, 연속적으로 통신을 요청하지 않게 하기 위함. |
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.
요건 fixme 가 필요한 상태라 살려주실 수 있을까여 ㅜ
🌴 PR 요약
🌱 작업한 브랜치
🌱 작업한 내용
📮 관련 이슈