SwiftUI: How to create a Horizontal Paging ScrollView?
Xcode 12 — iOS 14
1 min readJun 28, 2020
SwiftUI 2.0 made it so easy that you can build a Page view in less than 20 line. All we need to do is:
- Create a TabView
- Set TabView Style PageTabViewStyle
- Embed Row content inside table view either with for each or custom
- Embed this TabView to HStack (or LazyHStack).
- Done.