Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can I have multiple viewcontrollers in UIPageViewController display at once

I'm trying to have multiple viewControllers show in a single frame of a UIPageViewController. With the current page being centred in the UIPageViewController and the previous and next cards showing on the edge of the screen

I've been struggling to find a solution. Any help would be much appreciated.

-> Like this <-

like image 639
eli_slade Avatar asked Oct 31 '22 19:10

eli_slade


1 Answers

I don't think you can do what you are describing. A page view controller shows one page, or 2 pages with a spine in the middle. It has pages "waiting in the wings" for when the user flips/slides new pages, but I don't think it supports showing pages off the edge.

That said, it wouldn't be that hard to create your own parent/child view controller arrangement that does what you want. you might even be able to base it off of a UICollectionView.

like image 160
Duncan C Avatar answered Nov 14 '22 00:11

Duncan C