kvyatkovskys / KVKCalendar

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

Subviews are missing #369

Open rakuyoMo opened 1 month ago

rakuyoMo commented 1 month ago

https://github.com/kvyatkovskys/KVKCalendar/blob/f555bbd06039449a29e45af1194cbe00b025f5bb/Sources/KVKCalendar/DayView.swift#L242-L243

The beginning of this method removes all subviews.

https://github.com/kvyatkovskys/KVKCalendar/blob/f555bbd06039449a29e45af1194cbe00b025f5bb/Sources/KVKCalendar/DayView.swift#L295-L298

But if reload is false, only timelinePage is added back, and topBackgroundView is lost.

Is this intentional? Or am I using it wrong?

rakuyoMo commented 1 month ago

Additional note: You can see this problem if you call updateStyle(_:) and pass it a Style that haven’t modified.

kvyatkovskys commented 1 month ago

@rakuyoMo Thank you for the issue I'll check this