Skip to content

Commit

Permalink
Merge pull request #379 from rakuyoMo/fix/empty-day-cell-reuse
Browse files Browse the repository at this point in the history
  • Loading branch information
kvyatkovskys authored Sep 12, 2024
2 parents 85e42f1 + 2aa3181 commit 1e99b39
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion Sources/KVKCalendar/DayCell.swift
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,12 @@ class DayCell: UICollectionViewCell {

var selectDate: Date = Date() {
didSet {
guard day.type != .empty else { return }
guard day.type != .empty else {
titleLabel.textColor = style.headerScroll.colorNameEmptyDay
dotView.backgroundColor = .clear
isSelected = false
return
}

let nowDate = Date()
guard nowDate.kvkMonth != day.date?.kvkMonth else {
Expand Down

0 comments on commit 1e99b39

Please sign in to comment.