Posts

Post not yet marked as solved
1 Replies
1.1k 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
Posted
by stagis.
Last updated
.