I did a video on how to make an image gallery using SwiftUI. Interestingly I didn't need to use a ScrollView or HStack. It turns out that you can use a TabView with a PageTabViewStyle. This will automatically add your page indicators and allow a paging scroll through your items in the TabView.
Amazing how little code is needed to create this and shows off the power of SwiftUI
Check out the video here: