Hi,
I'm trying to change the today date using the NSCalendarDayChanged notification, but I'm not being able to do so. Does anyone knows how to do it?
Edit: I tried changing the date by setting:
self.calendar.today = Date()
When I set today like in the code above, the date value doesn't change but if I click in the day that I tried to set as the new today in the calendar the day gets marked as today and I get two todays at the same time, but if I navigate trough the calendar than gets back to the place where I had the "todays" the one that should be the right is gone and the old one is still there.
And by posting the notification that I found in some issues:
NotificationCenter.default.post(name: Notification.Name.UIApplicationSignificantTimeChange, object: nil)
But none of those worked.
Best regards.
Hi,
I'm trying to change the today date using the NSCalendarDayChanged notification, but I'm not being able to do so. Does anyone knows how to do it?
Edit: I tried changing the date by setting:
When I set today like in the code above, the date value doesn't change but if I click in the day that I tried to set as the new today in the calendar the day gets marked as today and I get two todays at the same time, but if I navigate trough the calendar than gets back to the place where I had the "todays" the one that should be the right is gone and the old one is still there.
And by posting the notification that I found in some issues:
But none of those worked.
Best regards.