1

From this article, I took this code:

struct ContentView: View {
    var body: some View {
        TabView {
            Text("First")
            Text("Second")
            Text("Third")
            Text("Fourth")
        }
        .tabViewStyle(.page)
        }
    }

This works for a paging view, but I want it to repeat the pages so when it gets to the last item, the next scroll will get to the first item again and repeat.

Is there a SwiftUI easy way to achieve this? Any idea how to get this to work as described?

Eyzuky
  • 1,843
  • 2
  • 22
  • 45

0 Answers0