ScrollViewReader's scrollTo
scrolls too much in iOS 15.
I had no problem with iOS 14.
This is the code:
import SwiftUI struct ContentView: View { var body: some View { ScrollViewReader { proxy in ScrollView { VStack { Color.yellow .frame(height: 800) ScrollButton(proxy: proxy) } } } } } struct ScrollButton: View { let proxy: ScrollViewProxy @Namespace var bottomId var body: some View { VStack { Button("Scroll") { withAnimation { proxy.scrollTo(bottomId) } } Color.red .frame(height: 500) .id(bottomId) } } } struct ContentView_Previews: PreviewProvider { static var previews: some View { ContentView() } }