Skip to content

Commit

Permalink
[CHORE] 커리큘럼 주차별 리스트 주차사진 black blurview 추가 (Team-LionHeart#121)
Browse files Browse the repository at this point in the history
  • Loading branch information
ffalswo2 committed Jul 21, 2023
1 parent 0254bbf commit fbdba2f
Showing 1 changed file with 12 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -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()

}


Expand All @@ -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() {
Expand All @@ -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()
Expand Down

0 comments on commit fbdba2f

Please sign in to comment.