You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
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:
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!
The text was updated successfully, but these errors were encountered:
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
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.
Simulator.Screen.Recording.-.iPhone.15.-.2024-06-11.at.17.41.17.mp4
Simulator.Screen.Recording.-.iPhone.15.-.2024-06-11.at.17.41.55.mp4
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
print("dailyFormatter --> (self.dailyFormatter.string(from: date))")
#endif
case self.weeklyCalendarView:
self.weekStartSelectedNSDate = date
self.weekStartSelectedDate = self.weekFormatter.string(from: date)
self.addOrRemove(value: self.weekFormatter.string(from: date), in: &weekSelectedDatesArray)
#if DEBUG
print("weekFormatter --> (self.weekFormatter.string(from: date))")
#endif
default:
break
}
}
}
`
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:
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!
The text was updated successfully, but these errors were encountered: