struct ContentView: View { var body: some View { TabView { ForEach(0..<5) { _ in Button(action: { // some action }) { Circle().frame(width: 200, height: 200) } } } .tabViewStyle(PageTabViewStyle()) } }
struct ContentView: View { var body: some View { TabView { ForEach(0..<5) { _ in Button(action: { // some action }) { Circle().frame(width: 200, height: 200) } } } .tabViewStyle(PageTabViewStyle()) } }