How to tease adjacent pages in PageTabView?

Viewed 185

I am working with SwiftUI 2 and using a TabView with PageTabViewStyle.

Now, I am searching for a way to "tease" the pages adjacent to the current page like so:

Image source: http://ios-dev.co/swiftui/how-to-create-page-view-in-swiftui/

Is it possible to achieve this effect with TabView and PageTabViewStyle?

I already tried to reduce the width of my TabView to be windowWidth-50. However, this did not lead to the adjacent pages being visible at the sides. Instead, this change introduced a hard vertical edge 50px left of the right window border, where new pages would slide in.

0 Answers
Related