I have recently been using PageTabViewStyle() on the tabViewStyle modifier of the TabView. However I wanted a more custom design, like the image below, but i do not know how to do it.
What i want is essentially sliding views (i will replace those gray views with movie posters), the middle view which is selected should be the largest, while others next to it to be smaller, i want to be able to slide the views horizontally. How can this be achieve this design?

If I were you, I would use LazyHStack inside the ScrollView and then use GeometryReader to determine the position of the items in LazyHStack. And finally use scaleEffect modifier. Something like this:
And then also create MoviePosterView like: