Open dimpy-iroid opened 4 weeks ago
Its difficult to read this. Is your project sharable?
Also have you checked this out? https://github.com/patchthecode/JTAppleCalendar/issues/1319
Hello! Thank you for your response, yes I have checked almost all the issues in the last 2 days. But I'm not able to fix the issue. Future dates are getting selected in some cases. Could you please see attached zip file of my project? CalendarApp.zip
Thank you! Kindly see Expected Behaviour mentioned above.
(Required) Version Number: 8.0.5![Screenshot 2024-06-11 at 5 02 50 PM](https://github.com/patchthecode/JTAppleCalendar/assets/130362429/a9e5171b-78f3-44aa-8642-3b606fc3237d)
Description
I have to disable the future dates in two calendars in which dailyCalendarView has single selection and weeklyCalendarView has range selection.
but the issue is sometimes future dates are not getting disabled. Also, how do I allow users to select only 7 dates in weeklyCalendarView? @IBAction func onClear(_ sender: UIButton) { self.dailyCalendarView.deselectAllDates() self.weeklyCalendarView.deselectAllDates() } this code is also not working.
https://github.com/patchthecode/JTAppleCalendar/assets/130362429/7c1fae36-6f3e-49d2-a916-498fd6b637f6
https://github.com/patchthecode/JTAppleCalendar/assets/130362429/76f04525-7415-40eb-827b-ba6a835a1c47
Steps To Reproduce
` import UIKit import JTAppleCalendar
class InsightsFilterScreen: BottomPopupViewController { // MARK: - Outlets //UIButton @IBOutlet weak var dailyMonthButton: UIButton! @IBOutlet weak var dailyYearButton: UIButton! @IBOutlet weak var weeklyMonthButton: UIButton! @IBOutlet weak var weeklyYearButton: UIButton!
}
// MARK: - JTACMonthView DataSource extension InsightsFilterScreen: JTACMonthViewDataSource { func configureCalendar(_ calendar: JTACMonthView) -> ConfigurationParameters {
}
// MARK: - JTACMonthView Delegate extension InsightsFilterScreen: JTACMonthViewDelegate { func calendar(_ calendar: JTACMonthView, cellForItemAt date: Date, cellState: CellState, indexPath: IndexPath) -> JTACDayCell {
if DEBUG
endif
if DEBUG
endif
} `
Expected Behavior
I want to disable future dates. I want to allow users to select only 7 dates in weeklyCalendarView. I want to have a start date and end date in range selection like this:![image](https://github.com/patchthecode/JTAppleCalendar/assets/130362429/d1127085-7eac-48b4-9c78-34ef959b4bba)
on clear button all the selected dates should get deselected at one time.
Additional Context
I am constantly trying from the last two days to resolve this issue, Also there is no documentation here on how to create your custom calendar. If anyone could guide me I would be really grateful.
Thank you!