Post not yet marked as solved
Post marked as unsolved with 1 replies, 1,078 views
I see that we now have ScrollViewReader and scrollTo for ScrollView.
In my view I am using a list. Something like this:
NavigationView {
List {
ForEach(calendarViewModel.years) { year in
ForEach(year.months) { month in
ForEach(month.days) { day in
DayView(day: day)
}}}}}
In my navigationBarItems I would like to have a button for scrolling to a certain day (like today).
But I have not seen any examples for this with list. And how would it work for these nested ForEach'es?
Very best,
Svend