Describe the bug
Hello, We think that there is a problem with this function:
func dequeueCornerHeader(date: Date, frame: CGRect, type: CalendarType) -> UIView?
As soon as we present/push the calendar view controller, this function will be called and will create our custom header view as we want it. But, right after the creation of this custom header view, I guess the reference to this view will be broken somehow! As we don't have access to this view anymore and we can not update the content of the header view. For example: I want to update the day and the week label on my custom header view as soon as user swipe the calendar to right or left. But it will not happen. I use this function to update my labels:
func didSelectDates(_ dates: [Date], type: CalendarType, frame: CGRect?)
But I guess it could be useful that I mention sometimes it work without any problem and will update my labels but in 90% of times, It's not working.
Describe the bug Hello, We think that there is a problem with this function:
func dequeueCornerHeader(date: Date, frame: CGRect, type: CalendarType) -> UIView?
As soon as we present/push the calendar view controller, this function will be called and will create our custom header view as we want it. But, right after the creation of this custom header view, I guess the reference to this view will be broken somehow! As we don't have access to this view anymore and we can not update the content of the header view. For example: I want to update the day and the week label on my custom header view as soon as user swipe the calendar to right or left. But it will not happen. I use this function to update my labels:func didSelectDates(_ dates: [Date], type: CalendarType, frame: CGRect?)
But I guess it could be useful that I mention sometimes it work without any problem and will update my labels but in 90% of times, It's not working.Screenshots
My code:
Thank you.