-
Notifications
You must be signed in to change notification settings - Fork 1
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
[밀봉/개봉 화면] 버그 수정 #104
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.
고생하셨읍니다 (_ _ ) ( _ _)
@@ -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) |
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.
이러면 무조건 기기 화면크기 인가요?
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 |
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.
불필요한 lazy 키워드 제거한거 좋네요
이왕 하시는 김에 불필요한 var 은 let 으로, 또 다른 객체에서 참조되지 않을 Label 들 같은 프로퍼티들은 private 으로 선언하면 더 좋을 것 같다는 의견입니당 ㅋㅅㅋ
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.
UnOpenabel 프로토콜의 속성들이라서 var를 사용했습니다.
$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) |
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.
고생하셨네요 ㅎㅎ
제출 전 필수 확인 사항:
작업 내용: