patchthecode / JTAppleCalendar

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

willScrollToDateSegmentWith should be called in ScrollToSegment function #1070

Open patchthecode opened 5 years ago

patchthecode commented 5 years ago

As title says. Linked to this issue https://github.com/patchthecode/JTAppleCalendar/issues/1061#issuecomment-499422444

roteirod commented 4 years ago

Hey, guys! Any update on this? Looks like willScrollToDateSegmentWith is still not called when using ScrollToSegment...

MussaCharles commented 3 years ago

@patchthecode any updates on this issue? I I have the same problem so I am wondering if the issue was resolved back then or not yet 😢

patchthecode commented 3 years ago

I do not have the time to do this right now. But if anyone can open a pull request i'd be grateful

shadowsheep1 commented 2 years ago

@MussaCharles you can use the completionHander of scrollToSegment (without modify the current lib) and do what you need here with calendarView.visibleDates()

MussaCharles commented 2 years ago

@MussaCharles you can use the completionHander of scrollToSegment (without modify the current lib) and do what you need here with calendarView.visibleDates()

@shadowsheep1 Aww, thanks I will have a look at it.