From fbdba2f1584b0d43179296094780312f36ddca6a Mon Sep 17 00:00:00 2001 From: Kim Minjae Date: Sat, 22 Jul 2023 03:55:10 +0900 Subject: [PATCH] =?UTF-8?q?[CHORE]=20=EC=BB=A4=EB=A6=AC=ED=81=98=EB=9F=BC?= =?UTF-8?q?=20=EC=A3=BC=EC=B0=A8=EB=B3=84=20=EB=A6=AC=EC=8A=A4=ED=8A=B8=20?= =?UTF-8?q?=EC=A3=BC=EC=B0=A8=EC=82=AC=EC=A7=84=20black=20blurview=20?= =?UTF-8?q?=EC=B6=94=EA=B0=80=20(#121)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ...lumArticleByWeekRowZeroTableViewCell.swift | 20 +++++++++++-------- 1 file changed, 12 insertions(+), 8 deletions(-) diff --git a/LionHeart-iOS/LionHeart-iOS/Scenes/Curriculum/Cells/CurriculumArticleByWeekRowZeroTableViewCell.swift b/LionHeart-iOS/LionHeart-iOS/Scenes/Curriculum/Cells/CurriculumArticleByWeekRowZeroTableViewCell.swift index ef0b6d47..31c2eb3b 100644 --- a/LionHeart-iOS/LionHeart-iOS/Scenes/Curriculum/Cells/CurriculumArticleByWeekRowZeroTableViewCell.swift +++ b/LionHeart-iOS/LionHeart-iOS/Scenes/Curriculum/Cells/CurriculumArticleByWeekRowZeroTableViewCell.swift @@ -33,6 +33,12 @@ final class CurriculumArticleByWeekRowZeroTableViewCell: UITableViewCell, TableV imageView.isUserInteractionEnabled = true return imageView }() + + private let blurblackView: UIView = { + let view = UIView() + view.backgroundColor = .designSystem(.black)?.withAlphaComponent(0.4) + return view + }() private lazy var leftWeekButton: UIButton = { let button = UIButton(type: .custom) @@ -83,15 +89,9 @@ final class CurriculumArticleByWeekRowZeroTableViewCell: UITableViewCell, TableV override init(style: UITableViewCell.CellStyle, reuseIdentifier: String?) { super.init(style: style, reuseIdentifier: reuseIdentifier) - // MARK: - 컴포넌트 설정 setUI() - - // MARK: - addsubView setHierarchy() - - // MARK: - autolayout설정 setLayout() - } @@ -108,9 +108,9 @@ private extension CurriculumArticleByWeekRowZeroTableViewCell { func setHierarchy() { curriculumAndWeekStackView.addArrangedSubviews(curriculumLabel, weekLabel) - weekBackGroundImageView.addSubviews(curriculumAndWeekStackView) + weekBackGroundImageView.addSubviews(blurblackView, curriculumAndWeekStackView) contentView.addSubviews(weekBackGroundImageView, leftWeekButton, rightWeekButton) - + } func setLayout() { @@ -119,6 +119,10 @@ private extension CurriculumArticleByWeekRowZeroTableViewCell { $0.edges.equalToSuperview() $0.height.equalTo(weekBackGroundImageView.snp.width).multipliedBy(Size.weekBackGroundImageSize) } + + blurblackView.snp.makeConstraints { make in + make.edges.equalToSuperview() + } leftWeekButton.snp.makeConstraints{ $0.centerY.equalToSuperview()