How I could create a Cover flow with SwiftUI TabView without using any external dependency.
Like this image
TabView(selection: self.$pg.index){
ForEach(0 ..< 5) {item in
FruitCardView(fruit: fruitsData[item])
}
}.tabViewStyle(PageTabViewStyle(indexDisplayMode: .always))
.edgesIgnoringSafeArea(.leading)
.padding(.vertical, 20)
How I want to display it :
enter image description here Thanks in advance
You can use Tabview.
https://developer.apple.com/documentation/swiftui/tabview