From 71faf4f78d05ea8b96328c97168482495197c1fe Mon Sep 17 00:00:00 2001 From: Zoe Date: Sun, 7 Jan 2024 05:35:16 +0900 Subject: [PATCH] [Fix/#19[ Challenge - Cell Style --- .../Challenge/Cells/DateCollectionViewCell.swift | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/HMH_iOS/HMH_iOS/Presentation/Challenge/Cells/DateCollectionViewCell.swift b/HMH_iOS/HMH_iOS/Presentation/Challenge/Cells/DateCollectionViewCell.swift index b040598..55326ff 100644 --- a/HMH_iOS/HMH_iOS/Presentation/Challenge/Cells/DateCollectionViewCell.swift +++ b/HMH_iOS/HMH_iOS/Presentation/Challenge/Cells/DateCollectionViewCell.swift @@ -15,12 +15,12 @@ class DateCollectionViewCell: UICollectionViewCell { let dateLabel = UILabel().then { $0.text = "1" - $0.textColor = .white - $0.font = .systemFont(ofSize: 14, weight: .medium) + $0.textColor = .gray2 + $0.font = .iosText6Medium14 } let imageView = UIImageView().then { - $0.backgroundColor = .gray + $0.backgroundColor = .background $0.makeCornerRound(radius: 8) } @@ -53,4 +53,9 @@ class DateCollectionViewCell: UICollectionViewCell { $0.size.equalTo(40) } } + + func configureCell(date: String, image: UIImage = UIImage()){ + dateLabel.text = date + imageView.image = image + } }