JTAppleCalendar icon indicating copy to clipboard operation
JTAppleCalendar copied to clipboard

Duplicate week data when using JTACMonthView as a single-line horizontal calendar for current week

Open wtdu opened this issue 1 month ago • 2 comments

Hey, I’m using JTACMonthView to implement a horizontal single-line week calendar (showing only one week at a time, scrolling horizontally between weeks). The calendar is configured to display only the current week (7 days), but I’m encountering a duplicate data issue:

The week containing the current date appears to be loaded twice in the data source, causing duplicate cells or unexpected scrolling behavior.

This happens specifically when scrollDirection = .horizontal and visibleDates are limited to one week.

Expected Behavior: When scrolling week by week horizontally, each week should appear only once, and the current week should not be duplicated.

Here’s is my demo code:

JTCalendarTestDemo.zip

Here's is record demo video:

https://github.com/user-attachments/assets/c1be9217-02ae-4616-b074-344f3d7b0209

@patchthecode can you help me?

wtdu avatar Dec 04 '25 05:12 wtdu

Current JTAppleCalendar version is 8.0.5.

wtdu avatar Dec 04 '25 05:12 wtdu

hmm. i'll check it out over the weekend.

patchthecode avatar Dec 08 '25 21:12 patchthecode