I'm trying to reload FSCalendar using Dispatch main queue. it works fine but it causes the calendar to jump all the way back to 1970 how can i prevent this from happening? or set the date to current date again ? here is my code:
DispatchQueue.main.async {
self.calendar.firstWeekday = 7
self.calendar.locale = Locale(identifier: "fa_IR")
self.calendar.select(Date())
self.calendar.identifier = NSCalendar.Identifier.persian.rawValue
self.calendar.reloadData()
}
btw this issue has nothing to do with Dispatch. reloading it in other forms causes the same problem too.