You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We would like to allow the user to navigate infinitely into the future and into the past. We would also likely provide an initial scrolled month. We are achieving this by doing the following
Set the visibleDateRange to (Now - 10 years)...(Now + 10 Years)
After CalendarView.init() call self.scroll(toMonthContaining: someDate, scrollPosition: .centered, animated: false)
This is not ideal because
We don't want to arbitrarily bound the navigation by 20 years
Since we are using the SwiftUI variant we have to modify the internals CalendarView.init() to achieve this initial scroll position
Do the maintainers of this project condone our current approach or would they suggest something else?
Thanks for your hard work, the performance is excellent.
The text was updated successfully, but these errors were encountered:
mfbx9da4
changed the title
Provide the initial scrolled month with infinite bidirectional scrolling
Provide the initial scrolled month and infinite bidirectional scrolling
Apr 2, 2023
We would like to allow the user to navigate infinitely into the future and into the past. We would also likely provide an initial scrolled month. We are achieving this by doing the following
CalendarView.init()
callself.scroll(toMonthContaining: someDate, scrollPosition: .centered, animated: false)
This is not ideal because
CalendarView.init()
to achieve this initial scroll positionDo the maintainers of this project condone our current approach or would they suggest something else?
Thanks for your hard work, the performance is excellent.
The text was updated successfully, but these errors were encountered: