After updating Xcode to the last versione and my app to iOS 12, the FScalendar doesn't fire anymore calendar(_ calendar: FSCalendar, didSelect date: Date, at monthPosition: FSCalendarMonthPosition). I need an urgent fix or I'll have to replace the control with something else. Please help !
Ok, it looks like there was a problem of signature changing in the last versions... maybe I missed the document explaining that ?
noticed that if to long press ( 3 sec) on a date it will be chosen, but can't understand how to fix it.
For anyone who end up here because not being able to select a date after updating pod to latest version:
The method func calendar(_ calendar: FSCalendar, didSelect date: Date) from FSCalendarDelegate has been renamed to public func calendar(_ calendar: FSCalendar, didSelect date: Date, at monthPosition: FSCalendarMonthPosition).
Just update your delegate implementation and you're good to go.
Maybe the readme should be updated with a migrate section.
I'm not getting the method called when multiple selection is enabled. I have to long press to get a date to change. Boggling my mind.
EDIT: Fixed it. You have to call the following on any other UITapGestureRecognizers you have:
gesture.cancelsTouchesInView = false
or else you will conflict with the tap for the Calendar.
Thank you it works
noticed that if to long press ( 3 sec) on a date it will be chosen, but can't understand how to fix it.
did you got solution?
Most helpful comment
For anyone who end up here because not being able to select a date after updating pod to latest version:
The method
func calendar(_ calendar: FSCalendar, didSelect date: Date)fromFSCalendarDelegatehas been renamed topublic func calendar(_ calendar: FSCalendar, didSelect date: Date, at monthPosition: FSCalendarMonthPosition).Just update your delegate implementation and you're good to go.
Maybe the readme should be updated with a migrate section.