Show a UIPageViewController that does not display full screen

I would like to show a book on landscape iPhone that will use the page curl from the UIPageViewController, but I would like the book not to fill the entire screen.

To clarify, let's say, the background is a wooden table, and there is a book on it that can be viewed using the UIPageViewController and page freezes, but only page pages are involved in page curl, the background is completely static.

Is it possible?

+4
source share
1 answer

Yes it is possible. For example, I have a UIPageViewController using, for example, half the screen. The secret is to add it to the parent view controller, which is a custom container controller .

+1
source

Source: https://habr.com/ru/post/1442752/


All Articles