Jtapplecalendar: SCROLL TO, NOT WORKING PROPERLY

Created on 29 Jun 2018  路  3Comments  路  Source: patchthecode/JTAppleCalendar

Another question, default behavior is ok, looks like that with selected current date.
simulator screen shot - iphone x - 2018-06-29 at 16 26 04

But, when I open controller for the first time, and I call this methods:

calendarCollection.scrollToDate(Date()) {
      self.calendarCollection.selectDates([Date()])
    }

it looks like that, how to fix scrolling offset issue, so the scrollToDate, will scroll to correct day?

simulator screen shot - iphone x - 2018-06-29 at 16 26 48

Thank you!

Most helpful comment

did you build your calendar with code? or with storyboard.
If you built it with code, then do not forget

calendarView.scrollingMode = .stopAtEachCalendarFrame

or which ever one is suitable for you.
Closing issue. Let me know if it was resolved.

All 3 comments

Just point me, if I'm saying something wrong and this issue has nothing with the repo

did you build your calendar with code? or with storyboard.
If you built it with code, then do not forget

calendarView.scrollingMode = .stopAtEachCalendarFrame

or which ever one is suitable for you.
Closing issue. Let me know if it was resolved.

Thank you very much! Helped

Was this page helpful?
0 / 5 - 0 ratings

Related issues

Geekbell picture Geekbell  路  4Comments

Kevinw14 picture Kevinw14  路  3Comments

dimitris-c picture dimitris-c  路  5Comments

Fatalution picture Fatalution  路  3Comments

sahirmemon picture sahirmemon  路  4Comments