patchthecode / JTAppleCalendar

The Unofficial Apple iOS Swift Calendar View. Swift calendar Library. iOS calendar Control. 100% Customizable
https://patchthecode.com
MIT License
7.57k stars 812 forks source link

accessibility for visibleDates cells #1360

Closed inspiredlearner closed 1 year ago

inspiredlearner commented 2 years ago

JTAppleCalendar Version Number: 8.0.2

Description

Hello, I'm working on a client's app that uses this great library. I've been stuck at the issue below, it's probably simple but I haven't figured out. Any pointers or support would be greatly appreciated.

The app uses a date-picker calendar with a 'from' and 'to' dates to filter out health-related data with a custom date from the past 6 months. The view has one calendar showing the month with a 'from' or 'to' dates, and the other months can be navigated horizontally with the back and forth buttons. Given an inStartDate and inEndDate, I'm able to get all the accessibility elements for the dateCells within that range, but what I'm trying to achieve is to find only the elements for the visibileDates/visibleCells of the current month being shown, and one month at a time. Please advise what can be done to resolve this.

Please ignore the 'range' selectionType in the attached picture, I'm using the '.date' selectionType. Sorry for my English, hopefully you understand the issue.

exampleCalendar

patchthecode commented 2 years ago

calendarView.visibleDates(). returns the visible dates on the screen. There is also another version of that function that returns a completionHandler.