Skip to content

Commit 36efe97

Browse files
[FIX] only current month's date are shown (#20)
1 parent dce06cd commit 36efe97

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Sources/YCalendarPicker/SwiftUI/Views/DaysView.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ extension DaysView: View {
3535
var dateItem = allDates[index]
3636
dateItem.isSelected = dateItem.date == selectedDate
3737
var dayAppearance = dateItem.getDayAppearance(from: appearance)
38-
if dateItem.isBooked && !dateItem.date.isSameMonth(as: currentDate) {
38+
if !dateItem.date.isSameMonth(as: currentDate) {
3939
dayAppearance = appearance.grayedDayAppearance
4040
}
4141
let dayView = DayView(

0 commit comments

Comments
 (0)