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

[밀봉/개봉 화면] 버그 수정 #104

Merged
merged 2 commits into from
Dec 12, 2022
Merged

[밀봉/개봉 화면] 버그 수정 #104

merged 2 commits into from
Dec 12, 2022

Conversation

pyj9748
Copy link
Collaborator

@pyj9748 pyj9748 commented Dec 12, 2022

제출 전 필수 확인 사항:

  • Merge 하는 브랜치가 올바른가?
  • 코드 컨벤션을 준수하는가?
  • 빌드가 되는 코드인가요?
  • 버그가 발생하지 않는지 충분히 테스트 해봤나요?

작업 내용:

  • 캡슐 이미지, Label 간 레이아웃 조정
  • 개봉 불가능한 캡슐 버튼 비활성화

@pyj9748 pyj9748 added bug Something isn't working review labels Dec 12, 2022
@pyj9748 pyj9748 self-assigned this Dec 12, 2022
Copy link
Member

@trumanfromkorea trumanfromkorea left a comment

Choose a reason for hiding this comment

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

고생하셨읍니다 (_ _ ) ( _ _)

@@ -10,9 +10,9 @@ import SnapKit
import UIKit

final class CapsuleOpenView: UIView, BaseView, UnOpenable {
lazy var thumbnailImageView = ThemeThumbnailImageView(frame: .zero, width: FrameResource.capsuleThumbnailWidth)
var thumbnailImageView = ThemeThumbnailImageView(frame: .zero, width: UIScreen.main.bounds.width * FrameResource.capsuleThumbnailWidthRatio)
Copy link
Member

Choose a reason for hiding this comment

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

이러면 무조건 기기 화면크기 인가요?

let lockImageView = UIImageView()
lockImageView.image = .lock
lockImageView.tintColor = .themeGray200
return lockImageView
}()

lazy var dateLabel = {
var dateLabel = {
let dateLabel = ThemeLabel(text: nil, size: FrameResource.fontSize80, color: .themeGray200)
dateLabel.textAlignment = .center
return dateLabel
Copy link
Member

Choose a reason for hiding this comment

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

불필요한 lazy 키워드 제거한거 좋네요

이왕 하시는 김에 불필요한 var 은 let 으로, 또 다른 객체에서 참조되지 않을 Label 들 같은 프로퍼티들은 private 으로 선언하면 더 좋을 것 같다는 의견입니당 ㅋㅅㅋ

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

UnOpenabel 프로토콜의 속성들이라서 var를 사용했습니다.

Comment on lines -107 to +110
$0.top.equalTo(self.snp.centerY).multipliedBy(0.8).offset(FrameResource.openCapsuleVerticalPadding + FrameResource.capsuleThumbnailHeight / 2)
$0.top.equalTo(self.snp.centerY).multipliedBy(0.7)
.offset(FrameResource.capsuleThumbnailHeight / 2 + AnimationResource.capsuleMoveHeight)
$0.bottom.equalTo(openButton.snp.top).offset(-FrameResource.spacing200).priority(999)
Copy link
Member

Choose a reason for hiding this comment

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

고생하셨네요 ㅎㅎ

@pyj9748 pyj9748 merged commit 318df3c into develop Dec 12, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working review
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants