Actually screen: UIPageViewController does not scroll right to the end

If you scroll back to the left, everything is in place for the next slide. In fact, having left the 1st slide, we will never see it without a bug returning to it. The page size is correct, because you can move the image into place with your finger, but as soon as you let it go, it returns to the wrong position. I can not track, viewControllers returns an array of one current element.

    1 answer 1

    Found the reason. Reason: the next page overlapped the current one, but because elements - images with the Aspect Fill property set, then went beyond their own limits and covered the current page. The solution is simple - setting the Clip Subviews flag to the image so that it is cropped if it goes beyond the area of ​​its size.

    The cause and solution