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
Hello and thank you for great library! When I testing my app I get a problem with duplicates dates, I create new project for recreate problem and it's happened again. When I scroll from January first week, I get first week twice. https://monosnap.com/file/68dNlQN8O1SO1Hjb4Brk8oGme2mCnM
IMPORTANT - BEFORE CREATING YOUR ISSUE PLEASE READ THE FOLLOWING:
PLEASE STATE THE VERSION NUMBER you are using.
7.1.4
Are you using the latest version of JTAppleCalendar? Latest version is currently 7.1.4
yes
PROVIDE ENOUGH INPORMATION SO I CAN RECREATE THE PROBLEM.
extension ViewController: JTAppleCalendarViewDataSource{
func configureCalendar(_ calendar: JTAppleCalendarView) -> ConfigurationParameters {
let now = Date()
let startDate = Calendar.current.date(byAdding: .year, value: -1, to: now)!
let endDate = Calendar.current.date(byAdding: .year, value: 1, to: now)!
let firstDay = DaysOfWeek(rawValue: Calendar.current.firstWeekday)
return ConfigurationParameters(startDate: startDate, endDate: endDate, numberOfRows: 1, calendar: Calendar.current, generateInDates: nil, generateOutDates: nil, firstDayOfWeek: firstDay, hasStrictBoundaries: nil)
}
}
extension ViewController: JTAppleCalendarViewDelegate{
func calendar(_ calendar: JTAppleCalendarView, willDisplay cell: JTAppleCell, forItemAt date: Date, cellState: CellState, indexPath: IndexPath) { }
func calendar(_ calendar: JTAppleCalendarView, cellForItemAt date: Date, cellState: CellState, indexPath: IndexPath) -> JTAppleCell {
let cell = calendar.dequeueReusableJTAppleCell(withReuseIdentifier: "Day", for: indexPath) as! DayCollectionViewCell
cell.day.text = cellState.text
self.navigationItem.title = NSLocalizedString("QuestionsTitle", comment: "Title for questions tab (Ex.: Questions(Nov.) what will be concatinated with month name") + "(\(titleFormatter.string(from: date)))"
return cell
}
}
The text was updated successfully, but these errors were encountered:
Hello and thank you for great library! When I testing my app I get a problem with duplicates dates, I create new project for recreate problem and it's happened again. When I scroll from January first week, I get first week twice.
https://monosnap.com/file/68dNlQN8O1SO1Hjb4Brk8oGme2mCnM
IMPORTANT - BEFORE CREATING YOUR ISSUE PLEASE READ THE FOLLOWING:
7.1.4
yes
The text was updated successfully, but these errors were encountered: