On Selecting today's date it is not scrolling to current time
Opened this issue · 1 comments
virkrishna786 commented
Describe the bug
As i have added today's custom button in navigation bar so whenever i am tapping on today's button then it is navigating to todays date with showing 12 am on selected event on collection view . So could you please check what can be the issue as it is not scrolling to current time
func todaysDateSelected() {
viewModel.navigateToToday
.sink { _ in
DispatchQueue.main.async {
self.viewModel.selectDate = Date()
self.calendarView.scrollTo(self.viewModel.selectDate)
self.calendarView.updateStyle(self.viewModel.style)
self.calendarView.reloadData()
}
}
.store(in: &cancellables)
}
kvyatkovskys commented
@virkrishna786 Hi!
example works fine. How do you trigger navigateToToday
?