Show partial previous and next item on PageTabViewStyle SwiftUI

94 Views Asked by At

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.

0

There are 0 best solutions below