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] #155 - 습관방 만들기 화면전환 및 각종 코드 디테일 수정 #158

Merged
merged 8 commits into from
Jan 21, 2022

Conversation

L-j-h-c
Copy link
Member

@L-j-h-c L-j-h-c commented Jan 20, 2022

🌴 PR 요약

🌱 작업한 브랜치

🌱 작업한 내용

  • 습관방 만들기 화면전환
  • 각종 코드 디테일 수정
  • 인증사진 모아보기 뷰 분기처리
  • 쉴래요 횟수에 따른 버튼 비활성화
  • 이미지 피커 이미지 리사이징

📮 관련 이슈

@L-j-h-c L-j-h-c added Feat 새로운 기능 구현 🧚‍♀️Devil『쥬노』 뀨의 의지 공식후계자입니다 아몰랑 P3 / Priority Low labels Jan 20, 2022
@L-j-h-c L-j-h-c self-assigned this Jan 20, 2022
Copy link
Member

@yangsubinn yangsubinn left a 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?
Copy link
Member

Choose a reason for hiding this comment

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

oh.....wow..

이미지 익스텐션 및 리사이징 함수 추가
이미지 피커에서 담을 이미지 리사이징
쉴래요 횟수에 따른 버튼 비활성화
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.

이미지가 들어가는 UImageview 의 사이즈를 보고 리사이징을 해주고 있는거 같아요! 상수 말고 변수로 할 수 있다면 좀 더 의미가 있을거 같아요

Comment on lines +51 to +53
} else if leftDay == 66 {
dDayLabel.text = "D-\(leftDay)"
certificationImage.image = UIImage()
Copy link
Member

Choose a reason for hiding this comment

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

66일은 모아보기 서버에서 안넘겨준다고 했지만 혹시 서버에서 잘못줄수도있으니 분기는 처리해둡시당

Comment on lines +11 to +18
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
}
Copy link
Member

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)
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

@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.

필요한 주석은 하나 살려주시구
리사이징도 코드 정리도하고 너무 잘했네여!

Comment on lines +116 to +120
if myRoomCertificationList?.last?.leftDay == 66 {
return ((myRoomCertificationList?.count ?? 0) - 1)
} else {
return myRoomCertificationList?.count ?? 0
}
Copy link
Member

Choose a reason for hiding this comment

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

이것도 66일 넘어올까봐에 대한 분기처리인가용?

Comment on lines -227 to -228
// FIXME: - 아래의 목적인데 한번 체크해야할듯
// 성공적으로 한번의 통신이 마무리된 후 무한스크롤 허용. 즉, 연속적으로 통신을 요청하지 않게 하기 위함.
Copy link
Member

Choose a reason for hiding this comment

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

요건 fixme 가 필요한 상태라 살려주실 수 있을까여 ㅜ

@hyun99999 hyun99999 merged commit d638fd5 into TeamSparker:develop Jan 21, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🧚‍♀️Devil『쥬노』 뀨의 의지 공식후계자입니다 아몰랑 Feat 새로운 기능 구현 P3 / Priority Low
Projects
None yet
3 participants