Closed antoniokranjcina closed 3 years ago
Hi 👋 setDateFormatter()
is only called the first time that a date needs to be formatted. The result is cached, so it isn’t called again when the user scrolls past this date.
For your use case, you should override onRangeChanged(firstVisibleDate: Calendar, lastVisibleDate: Calendar)
in your adapter instead. It’s called whenever the user scrolls to a new date range.
Hi,
I know that I can use
setDateFormatter
to get current month displayed intextView
. The problem is that if I scroll forward textView is getting updated as it should but when I scroll backward, nothing happens and textView is not getting updated. How to get current month displayed in week view?