Preventing the white gap that appears on swiping UIPageViewController

前端 未结 7 1113
广开言路
广开言路 2021-01-06 11:24

I have implemented the UIPageViewController in this manner:

\"Screenshot1\"

GalleryViewController

7条回答
  •  滥情空心
    2021-01-06 12:18

    Check definitely example here: https://github.com/dimpiax/UIPageViewControllerScrolling

    But if you want to remove empty blank on swipe, you can remove bounce, for example:

    for value in view.subviews {
        if let scrollView = value as? UIScrollView {
            scrollView.bounces = false
        }
    }
    

提交回复
热议问题