How to change the direction of a UIPageViewController paging animation

I need to display the contents in Arabic (from right to left) and could not find any method to rotate the page curl animation found by the UIPageViewController, because basically Arabic books should be rotated from left to right.

+4
source share
1 answer

If you only support portrait mode, you should look at the UIPageViewController delegate pageViewController:spineLocationForInterfaceOrientation: and return UIPageViewControllerSpineLocationMax .

But if you want to support both landscape and portrait, you can keep the default spine location animation, but provide pages in the opposite direction than requested.

In : pageViewController:viewControllerBeforeViewController: return the next page and in : pageViewController:viewControllerAfterViewController just return the previous one.

+2
source

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


All Articles