How to scroll to item in a List

I see that we now have ScrollViewReader and scrollTo for ScrollView.
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

Replies

This was fixed in beta 3, so now scrollTo also works for List. Example here on
hackingwithswift.com/quick-start/swiftui/how-to-scroll-to-a-specific-row-in-a-list

We made the move to LazyVStack, and I am not sure we are going back.