Fscalendar: does not fire calendar(_ calendar: FSCalendar, didSelect date: Date, at monthPosition: FSCalendarMonthPosition) not fired anymore with Swift 4.x

Created on 11 Nov 2018  路  6Comments  路  Source: WenchaoD/FSCalendar

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 !

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) 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.

All 6 comments

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?

Was this page helpful?
0 / 5 - 0 ratings

Related issues

kunass2 picture kunass2  路  4Comments

garudaonekh picture garudaonekh  路  4Comments

vishal-iosdeveloper picture vishal-iosdeveloper  路  5Comments

bizibizi picture bizibizi  路  3Comments

rintoandrews90 picture rintoandrews90  路  4Comments