Skip to content

Commit

Permalink
[Fix/#19[ Challenge - Cell Style
Browse files Browse the repository at this point in the history
  • Loading branch information
Zoe0929 committed Jan 6, 2024
1 parent fdd7010 commit 71faf4f
Showing 1 changed file with 8 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}

Expand Down Expand Up @@ -53,4 +53,9 @@ class DateCollectionViewCell: UICollectionViewCell {
$0.size.equalTo(40)
}
}

func configureCell(date: String, image: UIImage = UIImage()){
dateLabel.text = date
imageView.image = image
}
}

0 comments on commit 71faf4f

Please sign in to comment.