kvyatkovskys / KVKCalendar

A most fully customization calendar for Apple platforms 📅
https://kvyatkovskys.github.io/KVKCalendar/
MIT License
537 stars 118 forks source link

Fixed the issue where `headerScroll.titleDays` was not called when `day.type` was `.empty` #377

Closed rakuyoMo closed 1 month ago

rakuyoMo commented 1 month ago

Now in the code, when day.type is .empty, the following processing is performed:

guard day.type != .empty else {
    titleLabel.text = day.date?.titleForLocale(style.locale, formatter: style.headerScroll.weekdayFormatter).capitalized
    ...
    return
}

titleLabel.text is not set using the style.headerScroll.titleDays property, it is only applied when it is not .empty

I think this is an oversight, and this PR fixes it