It seems the issue is related to the .padding(.horizontal, 40) on the VStack within the ScrollView. If that padding is applied instead to the views within the VStack, the issue is resolved (although I definitely still think this is a bug).
Topic:
UI Frameworks
SubTopic:
SwiftUI
Tags: