I see that we now have ScrollViewReader and scrollTo for ScrollView.
In my view I am using a list. Something like this:
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
In my view I am using a list. Something like this:
Code Block 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