Skip to content

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

@wtdu

Description

@wtdu

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:

Simulator.Screen.Recording.-.iPhone.17.Pro.Max.-.2025-12-04.at.13.40.50.mov

@patchthecode can you help me?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions