Closed BBITSDev closed 3 years ago
Please, use the following methods:
override func dayView(dayView: DayView, willMoveTo date: Date) {
print("DayView = \(dayView) will move to: \(date)")
}
override func dayView(dayView: DayView, didMoveTo date: Date) {
print("DayView = \(dayView) did move to: \(date)")
}
By checking whether the new date is in a different week than the previous one, you'll be able to generate the Week Change event.
override func dayView(dayView: DayView, didMoveTo date: Date) {
methodNSCalendar
methods or DateTools
library. if they're in a different week, then the week has changed.Please, close this issue if your problem has been resolved.
Appreciate quick response.
@BBITSDev do you have any more questions on this topic? If you've resolved this issue, please, close the ticket.
New Issue Checklist
Result I am trying to achieve
I am trying to capture Week Change event when user either swipe the top label or swipe timelineview. Is there any delegate method to detect Week change?
Thanks in advance.