Try a combination of .containerRelativeFrame, constant spacing, and optionally .contentMargins and .safeAreaPadding for a nice "overflow" look.
I wrote a short post here, hope it helps -
How to center a viewAligned ScrollView in SwiftUI:
https://www.giraffeee.dev/how-to-center-a-viewaligned-scrollview-in-swiftui/
Topic:
UI Frameworks
SubTopic:
SwiftUI
Tags: