0

I want PageTabViewStyle() to show me a little piece of the previous and next item.

I have code like this

var body: some View {
        TabView {
            ForEach(0..<6) { _ in
            
                CustomButton()
            }
        }
        .tabViewStyle(PageTabViewStyle())
    }

Desired functionality here enter image description here

I tried GeometryReader but failed.

flanker
  • 3,840
  • 1
  • 12
  • 20

0 Answers0