Preventing the white gap that appears on swiping UIPageViewController

前端 未结 7 1038
广开言路
广开言路 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
        }
    }
    
    0 讨论(0)
提交回复
热议问题