As you can see on the image below, my UIPageLayout has four pages, the problem is that all the pages are visible at once causing some to stick out of the frame they are in.
The second image is the expected behaviour, as you can see, the pages on the edges are only partially visible and therefore not sticking out like mine do. The pages sort of hide behind an invisible wall when they go outside of the frame, how would I achieve this?

EDIT: Pretty sure the last image isn’t actually a UIPageLayout but a UIGrid/ListLayout, but I hope you still understand what I’m trying to do…