Skip to content

Commit

Permalink
[Refector]: lazy var -> let 롤백
Browse files Browse the repository at this point in the history
  • Loading branch information
Jeon0976 committed Mar 3, 2024
1 parent 91336f7 commit 11b68a9
Show file tree
Hide file tree
Showing 7 changed files with 40 additions and 36 deletions.
Empty file added Let
Empty file.
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ enum BadgeIconType {
}

final class BadgeIconView: NagazaBaseView {
private lazy var titleText: UILabel = {
private let titleText: UILabel = {
let label = UILabel()

label.font = NagazaFontFamily.Pretendard.medium.font(size: 8)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,17 +8,21 @@
import UIKit

final class RatingView: NagazaBaseView {
private lazy var starImageView: UIImageView = {
private let starImageView: UIImageView = {
let imageView = UIImageView()

imageView.image = NagazaAsset.Images.icStar.image

return imageView
}()

private lazy var ratingLabel: UILabel = {
private let ratingLabel: UILabel = {
let label = UILabel()

label.font = NagazaFontFamily.Pretendard.regular.font(size: 16)
label.textColor = NagazaAsset.Colors.gray3.color
label.text = "3.2"

return label
}()

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import RxCocoa
final class ReviewCell: UITableViewCell {
static let identifier = ReviewCell.description()

private lazy var profileImageView: UIImageView = {
private let profileImageView: UIImageView = {
let imageView = UIImageView()

imageView.image = NagazaAsset.Images.dummy.image
Expand All @@ -25,7 +25,7 @@ final class ReviewCell: UITableViewCell {
return imageView
}()

private lazy var nicknameLabel: UILabel = {
private let nicknameLabel: UILabel = {
let label = UILabel()

label.text = "아기고양이별이"
Expand All @@ -34,19 +34,19 @@ final class ReviewCell: UITableViewCell {
return label
}()

private lazy var ratingView: UIImageView = {
private let ratingView: UIImageView = {
let imageView = UIImageView()

imageView.image = NagazaAsset.Images.icLv5.image

return imageView
}()

private lazy var starImageView = RatingView()
private let starImageView = RatingView()

private lazy var lifeBadgeView = BadgeIconView(type: .flowerGarden)
private let lifeBadgeView = BadgeIconView(type: .flowerGarden)

private lazy var writeDateLabel: UILabel = {
private let writeDateLabel: UILabel = {
let label = UILabel()

label.font = NagazaFontFamily.Pretendard.medium.font(size: 14)
Expand All @@ -56,7 +56,7 @@ final class ReviewCell: UITableViewCell {
return label
}()

private lazy var contentsLabel: UILabel = {
private let contentsLabel: UILabel = {
let label = UILabel()

label.text = "진짜 오랜만에 나온 감성테마 꽃길 테마입니다!!!드림 이스케이프 매장 아무도 모르게 해주시고... 돌핀 테마도 많이 많이 해주시면 좋을 것 같아요~ 예약은 네이버"
Expand Down Expand Up @@ -105,19 +105,19 @@ final class ReviewCell: UITableViewCell {
return stackView
}()

private lazy var themeView = UIView()
private let themeView = UIView()

private lazy var lineView: UIView = {
private let lineView: UIView = {
let view = UIView()

view.backgroundColor = NagazaAsset.Colors.gray8.color

return view
}()

private lazy var cafeView = UIView()
private let cafeView = UIView()

private lazy var themeImageView: UIImageView = {
private let themeImageView: UIImageView = {
let imageView = UIImageView()

imageView.image = NagazaAsset.Images.dummy.image
Expand All @@ -128,7 +128,7 @@ final class ReviewCell: UITableViewCell {
return imageView
}()

private lazy var themeTitleLabel: UILabel = {
private let themeTitleLabel: UILabel = {
let label = UILabel()

label.text = "리그오브디저트"
Expand All @@ -138,15 +138,15 @@ final class ReviewCell: UITableViewCell {
return label
}()

private lazy var themeMoreImageView: UIImageView = {
private let themeMoreImageView: UIImageView = {
let imageView = UIImageView()

imageView.image = NagazaAsset.Images.icArrowRightGray.image

return imageView
}()

private lazy var cafeTitleLabel: UILabel = {
private let cafeTitleLabel: UILabel = {
let label = UILabel()

label.text = "꿈소풍 2호점"
Expand All @@ -156,9 +156,9 @@ final class ReviewCell: UITableViewCell {
return label
}()

private lazy var cafeRatingView = RatingView()
private let cafeRatingView = RatingView()

private lazy var cafeReviewLabel: UILabel = {
private let cafeReviewLabel: UILabel = {
let label = UILabel()

label.text = "리뷰 25개"
Expand All @@ -168,7 +168,7 @@ final class ReviewCell: UITableViewCell {
return label
}()

private lazy var barLabel: UILabel = {
private let barLabel: UILabel = {
let label = UILabel()

label.text = "|"
Expand All @@ -178,7 +178,7 @@ final class ReviewCell: UITableViewCell {
return label
}()

private lazy var themeLabel: UILabel = {
private let themeLabel: UILabel = {
let label = UILabel()

label.text = "테마 4개"
Expand All @@ -188,7 +188,7 @@ final class ReviewCell: UITableViewCell {
return label
}()

private lazy var cafeImageView: UIImageView = {
private let cafeImageView: UIImageView = {
let imageView = UIImageView()

imageView.image = NagazaAsset.Images.dummy.image
Expand All @@ -199,7 +199,7 @@ final class ReviewCell: UITableViewCell {
return imageView
}()

private lazy var cafeTitleStackView: UIStackView = {
private let cafeTitleStackView: UIStackView = {
let stackView = UIStackView()

stackView.axis = .horizontal
Expand All @@ -209,7 +209,7 @@ final class ReviewCell: UITableViewCell {
return stackView
}()

private lazy var cafeInfoStackView: UIStackView = {
private let cafeInfoStackView: UIStackView = {
let stackView = UIStackView()

stackView.axis = .horizontal
Expand All @@ -220,7 +220,7 @@ final class ReviewCell: UITableViewCell {
return stackView
}()

private lazy var cafeStackView: UIStackView = {
private let cafeStackView: UIStackView = {
let stackView = UIStackView()

stackView.axis = .vertical
Expand All @@ -230,7 +230,7 @@ final class ReviewCell: UITableViewCell {
return stackView
}()

private lazy var cafeMoreImageView: UIImageView = {
private let cafeMoreImageView: UIImageView = {
let imageView = UIImageView()

imageView.image = NagazaAsset.Images.icArrowRightGray.image
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ final class FilterTagCollectionViewCell: UICollectionViewCell {
return view
}()

private lazy var titleLabel: UILabel = {
private let titleLabel: UILabel = {
let label = UILabel()

label.textColor = NagazaAsset.Colors.gray3.color
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ final class FilterTitleCollectionViewCell: UICollectionViewCell {
return view
}()

private lazy var titleLabel: UILabel = {
private let titleLabel: UILabel = {
let label = UILabel()

label.textColor = NagazaAsset.Colors.gray3.color
Expand All @@ -39,7 +39,7 @@ final class FilterTitleCollectionViewCell: UICollectionViewCell {
return label
}()

private lazy var arrowImageView: UIImageView = {
private let arrowImageView: UIImageView = {
let imageView = UIImageView()

imageView.image = NagazaAsset.Images.icArrowBottomGray.image
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,13 @@ final class FilterTopView: NagazaBaseView {
}()

// TODO: 추후 작성 예정
private lazy var filterContentsView: UIView = {
private let filterContentsView: UIView = {
let view = UIView()
view.backgroundColor = .lightGray
return view
}()

private lazy var resetButtonLabel: UILabel = {
private let resetButtonLabel: UILabel = {
let label = UILabel()

label.text = "초기화"
Expand All @@ -34,7 +34,7 @@ final class FilterTopView: NagazaBaseView {
return label
}()

private lazy var applyButtonLabel: UILabel = {
private let applyButtonLabel: UILabel = {
let label = UILabel()

label.text = "적용"
Expand All @@ -45,7 +45,7 @@ final class FilterTopView: NagazaBaseView {
return label
}()

private lazy var resetButton: UIButton = {
private let resetButton: UIButton = {
let button = UIButton()

button.backgroundColor = NagazaAsset.Colors.gray8.color
Expand All @@ -55,7 +55,7 @@ final class FilterTopView: NagazaBaseView {
return button
}()

private lazy var applyButton: UIButton = {
private let applyButton: UIButton = {
let button = UIButton()

button.backgroundColor = NagazaAsset.Colors.mainOrange.color
Expand All @@ -65,7 +65,7 @@ final class FilterTopView: NagazaBaseView {
return button
}()

private lazy var buttonStackView: UIStackView = {
private let buttonStackView: UIStackView = {
let stackView = UIStackView()

stackView.axis = .horizontal
Expand All @@ -75,7 +75,7 @@ final class FilterTopView: NagazaBaseView {
return stackView
}()

private lazy var stackView: UIStackView = {
private let stackView: UIStackView = {
let stackView = UIStackView()

stackView.spacing = 0
Expand Down

0 comments on commit 11b68a9

Please sign in to comment.